aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-10-29 10:05:16 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-10-29 10:05:16 -0400
commit3e638665486f455d6619011b46ac589b445e8da1 (patch)
treecef770e1e90a3e5266a0942dc3b739ce153f5cfd /doc
parent779139b92748dc90249d92d3b8c453f48b2dbcba (diff)
downloadtextadept-3e638665486f455d6619011b46ac589b445e8da1.tar.gz
textadept-3e638665486f455d6619011b46ac589b445e8da1.zip
Updated doc/markdowndoc.lua.
Diffstat (limited to 'doc')
-rw-r--r--doc/markdowndoc.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua
index 5e216457..603b4f07 100644
--- a/doc/markdowndoc.lua
+++ b/doc/markdowndoc.lua
@@ -105,7 +105,9 @@ local function write_list(f, fmt, list)
value = value:gsub('^_G%.', '')
local link = value..'.html'
local module, func = value:match('^(.+)%.([^.]+)$')
- if module and func then link = module..'.html'..(func ~= '' and '#'..func or '') end
+ if module and func then
+ link = module..'.html'..(func ~= '' and '#'..func or '')
+ end
f:write(string_format(fmt, value, link))
else
-- The identifier belongs to the same module. Anchor it.
@@ -262,6 +264,7 @@ function M.start(doc)
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('SC_[%u]+', '<small>%0</small>')
f = io_open(M.options.output_dir..'/api/'..name..'.html', 'wb')
local html = HTML:gsub('%%%(([^)]+)%)', template)
f:write(html)