aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-01-31 15:02:51 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-01-31 15:02:59 +0100
commit02a6b0515e03773352e93f84bbee651d640f33ff (patch)
tree408ecc66230f438b3bd0833d7bf74fc4360c7830 /plugin
parent37f3da60958d789a3a96536b502398abe35a6efa (diff)
downloadfosdem-2018-presentation-02a6b0515e03773352e93f84bbee651d640f33ff.tar
fosdem-2018-presentation-02a6b0515e03773352e93f84bbee651d640f33ff.tar.gz
fix markdown typo, update comment #1780
Diffstat (limited to 'plugin')
-rwxr-xr-xplugin/markdown/markdown.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index aad7f63..d9ff1ba 100755
--- a/plugin/markdown/markdown.js
+++ b/plugin/markdown/markdown.js
@@ -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;