aboutsummaryrefslogtreecommitdiff
path: root/plugin/markdown
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-07-07 12:06:22 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-07-07 12:06:22 +0200
commit399d4f652d9ddd4d63040b2dc6bcdc19615abd1e (patch)
tree105ad3566a77dd84af1a5e46733f4325f36f6cd6 /plugin/markdown
parent852fea4133a190a6008e41638b0de41e1909cebb (diff)
parent9645a763c36347ead9dc5c070d226865ca9e8d90 (diff)
downloadfreenode-live-2017-presentation-399d4f652d9ddd4d63040b2dc6bcdc19615abd1e.tar
freenode-live-2017-presentation-399d4f652d9ddd4d63040b2dc6bcdc19615abd1e.tar.gz
Merge branch 'master' of https://github.com/bfritscher/reveal.js into dev
Diffstat (limited to 'plugin/markdown')
-rwxr-xr-xplugin/markdown/markdown.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index 15e3b40..14433e6 100755
--- a/plugin/markdown/markdown.js
+++ b/plugin/markdown/markdown.js
@@ -42,7 +42,8 @@
// strip leading whitespace so it isn't evaluated as code
var text = ( template || section ).textContent;
-
+ // restore script end tag
+ text = text.replace(/__SCRIPT_END__/g, '</script>');
var leadingWs = text.match( /^\n?(\s*)/ )[1].length,
leadingTabs = text.match( /^\n?(\t*)/ )[1].length;
@@ -114,7 +115,8 @@
if( notesMatch.length === 2 ) {
content = notesMatch[0] + '<aside class="notes" data-markdown>' + notesMatch[1].trim() + '</aside>';
}
-
+ //handle script end tag bug
+ content = content.replace(/<\/script>/g, '__SCRIPT_END__');
return '<script type="text/template">' + content + '</script>';
}