Merge branch 'patch-2' of https://github.com/ccqgithub/reveal.js into dev

This commit is contained in:
Hakim El Hattab 2017-01-31 15:02:26 +01:00
commit 37f3da6095
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@
* element. Normalizes leading tabs/whitespace. * element. Normalizes leading tabs/whitespace.
*/ */
function getMarkdownFromSlide( section ) { function getMarkdownFromSlide( section ) {
// support <textarea data-template> `some code` </textarea>
var template = section.querySelector( 'script' ); var template = section.querySelector( '[data-tempate]' ) || 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 ).textContent; var text = ( template || section ).textContent;