aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/markdowndoc.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2016-06-14 20:39:13 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2016-06-14 20:39:13 -0400
commit79dfb0d2f8e5b65b39a8ece94bc0bc1e5892ddbb (patch)
treee0a1c3db14405a812868d152572d0cfaad804cf6 /doc/markdowndoc.lua
parent3b3955794078a5bea50e68441e6e0ced4f7a5828 (diff)
Fixed API documentation generation bug; doc/markdowndoc.lua
Headers with non-alphanumeric characters were causing trouble.
Diffstat (limited to 'doc/markdowndoc.lua')
-rw-r--r--doc/markdowndoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/markdowndoc.lua b/doc/markdowndoc.lua
index 5042dbea..91bb240c 100644
--- a/doc/markdowndoc.lua
+++ b/doc/markdowndoc.lua
@@ -66,7 +66,7 @@ local function write_description(f, description, name)
-- Add anchors for module description headers.
description = description:gsub('\n(#+%s+([^\n]+))', function(header, text)
return string_format("\n\n<a id=\"%s.%s\"></a>\n\n%s", name,
- text:gsub(' ', '.'), header)
+ text:gsub('[%s%p]', '.'), header)
end)
end
-- Substitute custom [`code`]() link convention with [`code`](#code) links.