mirror of
https://gitlab.com/Oreolek/salet.git
synced 2024-07-04 07:45:03 +03:00
Edge case fix for Markdown parsing
This commit is contained in:
parent
66e8a71131
commit
46a4d65b35
|
@ -29,6 +29,7 @@ markdown = (text) ->
|
||||||
return ""
|
return ""
|
||||||
if typeof text is Function
|
if typeof text is Function
|
||||||
text = text()
|
text = text()
|
||||||
|
text = text.toString()
|
||||||
return marked(normaliseTabs(text), {
|
return marked(normaliseTabs(text), {
|
||||||
smartypants: true
|
smartypants: true
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue