From 4795d87de512fb9385d3fbd83c3d1f672b626892 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Thu, 11 Oct 2018 20:26:02 -0400 Subject: [PATCH] no empty markup divs --- app/components/markdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/markdown.js b/app/components/markdown.js index 6abbda0..83dd6a4 100644 --- a/app/components/markdown.js +++ b/app/components/markdown.js @@ -50,7 +50,7 @@ export default path => { const updatedMarkdown = wikiFinder(partialFinder(renderedMarkdown)); return html` -
${raw(updatedMarkdown)}
+ ${raw(updatedMarkdown)} `; }; @@ -81,7 +81,7 @@ function partialFinder(markdownBody) { } } - return markdownBody; + return ("
" + markdownBody + "
").replace(/
\s*<\/div>/, ""); } function wikiFinder(markdownBody) {