- Neue Funktion zum simplen Escapen von Markdown (ohne das "tanzende Männchen")

- RSS: Überflüssige \n werden rausgeschnitten
This commit is contained in:
Andreas Bielawski
2016-07-16 22:30:51 +02:00
parent 7c6337bf8a
commit 9c1dd2f9f7
3 changed files with 9 additions and 4 deletions

View File

@ -497,6 +497,13 @@ function utilities.markdown_escape(text)
return text
end
function utilities.markdown_escape_simple(text)
text = text:gsub('_', '\\_')
text = text:gsub('%*', '\\*')
text = text:gsub('`', '\\`')
return text
end
utilities.md_escape = utilities.markdown_escape
utilities.triggers_meta = {}