From 46a4d65b352e1792f49e8b2f01dc52ead10217ac Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Sun, 1 May 2016 17:42:14 +0700 Subject: [PATCH] Edge case fix for Markdown parsing --- lib/markdown.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/markdown.coffee b/lib/markdown.coffee index 0277668..6af7759 100644 --- a/lib/markdown.coffee +++ b/lib/markdown.coffee @@ -29,6 +29,7 @@ markdown = (text) -> return "" if typeof text is Function text = text() + text = text.toString() return marked(normaliseTabs(text), { smartypants: true })