avoid stripping out notes when parsing markdown (closes #253)
authorHakim El Hattab <hakim.elhattab@gmail.com>
Fri, 16 Nov 2012 14:25:26 +0000 (09:25 -0500)
committerHakim El Hattab <hakim.elhattab@gmail.com>
Fri, 16 Nov 2012 14:25:26 +0000 (09:25 -0500)
plugin/markdown/markdown.js

index 07ffd808bbbee28e99a06deb3efbda03f892dcb3..6331171a72785f78f3b1fce33eca6a1f7d3c12d9 100644 (file)
@@ -10,6 +10,7 @@
 
     for( var i = 0, len = sections.length; i < len; i++ ) {
         var section = sections[i];
+        var notes = section.querySelector( 'aside.notes' );
 
         var template = section.querySelector( 'script' );
 
@@ -27,6 +28,8 @@
         }
 
         section.innerHTML = (new Showdown.converter()).makeHtml(text);
+
+        section.appendChild( notes );
     }
 
 })();
\ No newline at end of file