From 332ce86c3a528f313070580fcef11c15ab5f309a Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 16 Nov 2012 09:29:25 -0500 Subject: [PATCH] null check for notes in markdown parser (#253) --- plugin/markdown/markdown.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 6331171..b1660a1 100644 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -29,7 +29,9 @@ section.innerHTML = (new Showdown.converter()).makeHtml(text); - section.appendChild( notes ); + if( notes ) { + section.appendChild( notes ); + } } })(); \ No newline at end of file -- 2.26.2