aboutsummaryrefslogtreecommitdiff
path: root/plugin/markdown
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-02-27 15:40:53 -0500
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-02-27 15:40:53 -0500
commit68fa39f083b72239681980614c3eb2de429da992 (patch)
treefded98e0ad985c8361017c3b79ff77100d47830c /plugin/markdown
parentc438ba6516f5979e8f07093c48c34bc801d440fd (diff)
parentf095af212ee2b6009412a89fe17ae46860efd8df (diff)
downloadfreenode-live-2017-presentation-68fa39f083b72239681980614c3eb2de429da992.tar
freenode-live-2017-presentation-68fa39f083b72239681980614c3eb2de429da992.tar.gz
Merge branch 'patch-1' of https://github.com/asmod3us/reveal.js into dev
Diffstat (limited to 'plugin/markdown')
-rw-r--r--plugin/markdown/markdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index ae4d08b..39e1168 100644
--- a/plugin/markdown/markdown.js
+++ b/plugin/markdown/markdown.js
@@ -11,7 +11,7 @@
var template = section.querySelector( 'script' );
// strip leading whitespace so it isn't evaluated as code
- var text = ( template || section ).innerHTML;
+ var text = ( template || section ).textContent;
var leadingWs = text.match(/^\n?(\s*)/)[1].length,
leadingTabs = text.match(/^\n?(\t*)/)[1].length;