diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-11-16 09:25:26 -0500 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-11-16 09:25:26 -0500 |
commit | 4009f2601e592945631515b9c7d0c1cab13b61d1 (patch) | |
tree | 691e06d82ae9b35635fe1bb23742c0faa1f7dbac | |
parent | 3924878ba1fdd9e0c96783f57ba5c3af6515d0b4 (diff) | |
download | fosdem-2018-presentation-4009f2601e592945631515b9c7d0c1cab13b61d1.tar fosdem-2018-presentation-4009f2601e592945631515b9c7d0c1cab13b61d1.tar.gz |
avoid stripping out notes when parsing markdown (closes #253)
-rw-r--r-- | plugin/markdown/markdown.js | 3 |
1 files changed, 3 insertions, 0 deletions
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 |