From 14ec7dad8165080688a7404091a649c9aff56f18 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 24 Feb 2013 22:50:27 -0500 Subject: Fixed bug in API documentation link generator; doc/markdowndoc.lua --- doc/markdowndoc.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/markdowndoc.lua') 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('()', '%1%2') -- strip params :gsub('([^<]+)', '%1') -- sans serif - :gsub('_G.(events.[%w_]+)', '%1') - :gsub('rectangular_[%w_]+', '%0') - :gsub('SC_[%u]+', '%0') + :gsub('>rectangular_[%w_]+', '>') + :gsub('>SC_[%u]+', '>') + :gsub('>_G.(events.[%w_]+)', + '>%1') f = io_open(M.options.output_dir..'/api/'..name..'.html', 'wb') local html = HTML:gsub('%%%(([^)]+)%)', template) f:write(html) -- cgit v1.2.3