Browse Source

null check for notes in markdown parser (#253)

Hakim El Hattab 12 năm trước cách đây
mục cha
commit
332ce86c3a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      plugin/markdown/markdown.js

+ 3 - 1
plugin/markdown/markdown.js

@@ -29,7 +29,9 @@
 
         section.innerHTML = (new Showdown.converter()).makeHtml(text);
 
-        section.appendChild( notes );
+        if( notes ) {
+            section.appendChild( notes );
+        }
     }
 
 })();