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:
parent
66e8a71131
commit
46a4d65b35
|
@ -29,6 +29,7 @@ markdown = (text) ->
|
|||
return ""
|
||||
if typeof text is Function
|
||||
text = text()
|
||||
text = text.toString()
|
||||
return marked(normaliseTabs(text), {
|
||||
smartypants: true
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue