From 0565727825412408fbaa53ee987c5ccfa9f06665 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Fri, 2 Sep 2016 15:52:38 -0700 Subject: [PATCH] Fixed compose --- frontend/utils/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/utils/markdown.js b/frontend/utils/markdown.js index b0bc85e0b..281c7c756 100644 --- a/frontend/utils/markdown.js +++ b/frontend/utils/markdown.js @@ -27,7 +27,7 @@ renderer.heading = (text, level) => { const convertToMarkdown = (text) => { // Add TOC - text = toc.insert(text, { + text = toc.insert(text || '', { slugify: (heading) => { // FIXME: E.g. `&` gets messed up const headingSlug = _.escape(slug(heading));