Explorar o código

Merge branch 'patch-1' of https://github.com/asmod3us/reveal.js into dev

Hakim El Hattab %!s(int64=12) %!d(string=hai) anos
pai
achega
68fa39f083
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugin/markdown/markdown.js

+ 1 - 1
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;