Merge branch 'master' into less-magic

This commit is contained in:
Brayden Banks
2016-04-25 22:40:31 -07:00
7 changed files with 144 additions and 25 deletions

View File

@@ -261,19 +261,14 @@ function utilities.markdown_escape(text)
text = text:gsub('_', '\\_')
text = text:gsub('%[', '\\[')
text = text:gsub('%]', '\\]')
text = text:gsub('%*', '\\*')
text = text:gsub('`', '\\`')
return text
end
function utilities.md_escape(s)
s = s:gsub('_', '\\_')
s = s:gsub('%[', '\\[')
s = s:gsub('%*', '\\*')
s = s:gsub('`', '\\`')
return s
end
utilities.md_escape = utilities.markdown_escape
utilities.INVOCATION_PATTERN = '/'