From: Hakim El Hattab Date: Fri, 16 Nov 2012 14:29:25 +0000 (-0500) Subject: null check for notes in markdown parser (#253) X-Git-Tag: 2.2.0~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=332ce86c3a528f313070580fcef11c15ab5f309a;p=reveal.js.git null check for notes in markdown parser (#253) --- 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