Skip to content
Snippets Groups Projects
Commit 399d4f65 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

Merge branch 'master' of https://github.com/bfritscher/reveal.js into dev

parents 852fea41 9645a763
No related branches found
No related tags found
No related merge requests found
......@@ -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>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment