From: asmod3us <4sm0d3us@gmail.com> Date: Tue, 26 Feb 2013 15:06:18 +0000 (+0100) Subject: Update plugin/markdown/markdown.js X-Git-Tag: 2.3.0~37^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f095af212ee2b6009412a89fe17ae46860efd8df;p=reveal.js.git Update plugin/markdown/markdown.js Use textContent instead of innerHTML to prevent encoding of certain characters in Markdown code blocks. --- 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;