diff options
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; |