aboutsummaryrefslogtreecommitdiff
path: root/plugin
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
parentc438ba6516f5979e8f07093c48c34bc801d440fd (diff)
parentf095af212ee2b6009412a89fe17ae46860efd8df (diff)
downloadfosdem-2018-presentation-68fa39f083b72239681980614c3eb2de429da992.tar
fosdem-2018-presentation-68fa39f083b72239681980614c3eb2de429da992.tar.gz
Merge branch 'patch-1' of https://github.com/asmod3us/reveal.js into dev
Diffstat (limited to 'plugin')
-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;