mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-05 14:17:56 +02:00
fix markdown typo, update comment #1780
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user