aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-02-24 22:50:27 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2013-02-24 22:50:27 -0500
commit14ec7dad8165080688a7404091a649c9aff56f18 (patch)
tree432e52c5816f028a2a2e9eaf3e809144e0f1ccd3
parent7176687143c74db67d704ad5936bbd9645b2cea7 (diff)
downloadtextadept-14ec7dad8165080688a7404091a649c9aff56f18.tar.gz
textadept-14ec7dad8165080688a7404091a649c9aff56f18.zip
Fixed bug in API documentation link generator; doc/markdowndoc.lua
-rw-r--r--doc/markdowndoc.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua
index eb8d3263..3abe6217 100644
--- a/doc/markdowndoc.lua
+++ b/doc/markdowndoc.lua
@@ -268,9 +268,10 @@ 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>')
- :gsub('rectangular_[%w_]+', '<small>%0</small>')
- :gsub('SC_[%u]+', '<small>%0</small>')
+ :gsub('>rectangular_[%w_]+', '><small%0</small>')
+ :gsub('>SC_[%u]+', '><small%0</small>')
+ :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)