Skip to content

Commit

Permalink
Merge branch 'patch-2' of https://github.com/ccqgithub/reveal.js into…
Browse files Browse the repository at this point in the history
… dev
  • Loading branch information
hakimel committed Jan 31, 2017
2 parents 3617eac + 5f76234 commit 37f3da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/markdown/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
* element. Normalizes leading tabs/whitespace.
*/
function getMarkdownFromSlide( section ) {

var template = section.querySelector( 'script' );
// support <textarea data-template> `some code` </textarea>
var template = section.querySelector( '[data-tempate]' ) || section.querySelector( 'script' );

// strip leading whitespace so it isn't evaluated as code
var text = ( template || section ).textContent;
Expand Down

0 comments on commit 37f3da6

Please sign in to comment.