null check for notes in markdown parser (#253)
authorHakim El Hattab <hakim.elhattab@gmail.com>
Fri, 16 Nov 2012 14:29:25 +0000 (09:29 -0500)
committerHakim El Hattab <hakim.elhattab@gmail.com>
Fri, 16 Nov 2012 14:29:32 +0000 (09:29 -0500)
plugin/markdown/markdown.js

index 6331171a72785f78f3b1fce33eca6a1f7d3c12d9..b1660a1b39ab6a1704b70ebc855b960889114567 100644 (file)
@@ -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