Small improvements to administration.lua.

This commit is contained in:
topkecleon
2016-04-20 16:43:08 -04:00
parent 66d9caefa3
commit 73f4863bc3
3 changed files with 24 additions and 9 deletions

View File

@@ -255,6 +255,7 @@ markdown_escape = function(text)
text = text:gsub('_', '\\_')
text = text:gsub('%[', '\\[')
text = text:gsub('%]', '\\]')
text = text:gsub('%*', '\\*')
text = text:gsub('`', '\\`')
return text
@@ -265,6 +266,7 @@ function string:md_escape()
local text = self
text = text:gsub('_', '\\_')
text = text:gsub('%[', '\\[')
text = text:gsub('%]', '\\]')
text = text:gsub('%*', '\\*')
text = text:gsub('`', '\\`')
return text