1
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet.git synced 2024-07-02 06:45:06 +03:00

Edge case fix for Markdown parsing

This commit is contained in:
Alexander Yakovlev 2016-05-01 17:42:14 +07:00
parent 66e8a71131
commit 46a4d65b35

View file

@ -29,6 +29,7 @@ markdown = (text) ->
return ""
if typeof text is Function
text = text()
text = text.toString()
return marked(normaliseTabs(text), {
smartypants: true
})