From: Hakim El Hattab Date: Fri, 16 Nov 2012 14:25:26 +0000 (-0500) Subject: avoid stripping out notes when parsing markdown (closes #253) X-Git-Tag: 2.2.0~47 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4009f2601e592945631515b9c7d0c1cab13b61d1;p=reveal.js.git avoid stripping out notes when parsing markdown (closes #253) --- diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 07ffd80..6331171 100644 --- a/plugin/markdown/markdown.js +++ b/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 ); } })(); \ No newline at end of file