aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-11-16 09:25:26 -0500
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-11-16 09:25:26 -0500
commit4009f2601e592945631515b9c7d0c1cab13b61d1 (patch)
tree691e06d82ae9b35635fe1bb23742c0faa1f7dbac
parent3924878ba1fdd9e0c96783f57ba5c3af6515d0b4 (diff)
downloadfosdem-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.js3
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