From 79dfb0d2f8e5b65b39a8ece94bc0bc1e5892ddbb Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 14 Jun 2016 20:39:13 -0400 Subject: Fixed API documentation generation bug; doc/markdowndoc.lua Headers with non-alphanumeric characters were causing trouble. --- doc/markdowndoc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/markdowndoc.lua') 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\n\n%s", name, - text:gsub(' ', '.'), header) + text:gsub('[%s%p]', '.'), header) end) end -- Substitute custom [`code`]() link convention with [`code`](#code) links. -- cgit v1.2.3