diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-01-31 15:02:26 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-01-31 15:02:26 +0100 |
commit | 37f3da60958d789a3a96536b502398abe35a6efa (patch) | |
tree | 633a060f17e8fec5d489f50b24e043ec7fcf66b7 /plugin | |
parent | 3617eaccb64efeaa2c3958d20840c65618f04979 (diff) | |
parent | 5f762345664551bc99cb12e0fe5e0c6c38b70b6e (diff) | |
download | fosdem-2018-presentation-37f3da60958d789a3a96536b502398abe35a6efa.tar fosdem-2018-presentation-37f3da60958d789a3a96536b502398abe35a6efa.tar.gz |
Merge branch 'patch-2' of https://github.com/ccqgithub/reveal.js into dev
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/markdown/markdown.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 29aabf5..aad7f63 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -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; |