aboutsummaryrefslogtreecommitdiff
path: root/doc/markdowndoc.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-10-08 11:40:17 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-10-08 11:40:17 -0400
commit91fcdb58bfe43b368f1bf32edc16ed7dba8c40cd (patch)
tree18c64ae98223dbbba9bd56c98906a254c9e20d5e /doc/markdowndoc.lua
parent7148f30241c81ce63fde27c230e1d9db02b19822 (diff)
downloadtextadept-91fcdb58bfe43b368f1bf32edc16ed7dba8c40cd.tar.gz
textadept-91fcdb58bfe43b368f1bf32edc16ed7dba8c40cd.zip
Use '@field' LuaDoc for events defined in modules.
Diffstat (limited to 'doc/markdowndoc.lua')
-rw-r--r--doc/markdowndoc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua
index e44e8c37..5e216457 100644
--- a/doc/markdowndoc.lua
+++ b/doc/markdowndoc.lua
@@ -261,6 +261,7 @@ function M.start(doc)
p:close()
template.toc = template.toc:gsub('(<a.-)%b()(</a>)', '%1%2') -- strip params
:gsub('<code>([^<]+)</code>', '%1') -- sans serif
+ :gsub('_G.(events.[%w_]+)', '<small>%1</small>')
f = io_open(M.options.output_dir..'/api/'..name..'.html', 'wb')
local html = HTML:gsub('%%%(([^)]+)%)', template)
f:write(html)