소스 검색

avoid stripping out notes when parsing markdown (closes #253)

Hakim El Hattab 11 년 전
부모
커밋
4009f2601e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      plugin/markdown/markdown.js

+ 3 - 0
plugin/markdown/markdown.js

@@ -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 );
     }
 
 })();