aboutsummaryrefslogtreecommitdiff
path: root/plugin/markdown
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 /plugin/markdown
parent3924878ba1fdd9e0c96783f57ba5c3af6515d0b4 (diff)
downloadfreenode-live-2017-presentation-4009f2601e592945631515b9c7d0c1cab13b61d1.tar
freenode-live-2017-presentation-4009f2601e592945631515b9c7d0c1cab13b61d1.tar.gz
avoid stripping out notes when parsing markdown (closes #253)
Diffstat (limited to 'plugin/markdown')
-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