diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-07-07 12:06:22 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-07-07 12:06:22 +0200 |
commit | 399d4f652d9ddd4d63040b2dc6bcdc19615abd1e (patch) | |
tree | 105ad3566a77dd84af1a5e46733f4325f36f6cd6 /plugin | |
parent | 852fea4133a190a6008e41638b0de41e1909cebb (diff) | |
parent | 9645a763c36347ead9dc5c070d226865ca9e8d90 (diff) | |
download | perl-software-in-gnu-guix-399d4f652d9ddd4d63040b2dc6bcdc19615abd1e.tar perl-software-in-gnu-guix-399d4f652d9ddd4d63040b2dc6bcdc19615abd1e.tar.gz |
Merge branch 'master' of https://github.com/bfritscher/reveal.js into dev
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/markdown/markdown.js | 6 |
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>'; } |