mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-21 14:02:29 +02:00
Merge branch 'patch-1' of https://github.com/asmod3us/reveal.js into dev
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
var template = section.querySelector( 'script' );
|
var template = section.querySelector( 'script' );
|
||||||
|
|
||||||
// strip leading whitespace so it isn't evaluated as code
|
// 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,
|
var leadingWs = text.match(/^\n?(\s*)/)[1].length,
|
||||||
leadingTabs = text.match(/^\n?(\t*)/)[1].length;
|
leadingTabs = text.match(/^\n?(\t*)/)[1].length;
|
||||||
|
Reference in New Issue
Block a user