Skip to content

Commit

Permalink
fix markdown typo, update comment hakimel#1780
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Jan 31, 2017
1 parent 5e7251f commit 422b3d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/markdown/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
* element. Normalizes leading tabs/whitespace.
*/
function getMarkdownFromSlide( section ) {
// support <textarea data-template> `some code` </textarea>
var template = section.querySelector( '[data-tempate]' ) || section.querySelector( 'script' );

// look for a <script> or <textarea data-template> wrapper
var template = section.querySelector( '[data-template]' ) || section.querySelector( 'script' );

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

0 comments on commit 422b3d4

Please sign in to comment.