aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Zhanhong <275368990@qq.com>2015-10-19 19:50:43 +0800
committerLiu Zhanhong <275368990@qq.com>2015-10-19 19:50:43 +0800
commit625831b9930c50114ab96dd635813a36655e7614 (patch)
treec2d4a289c75f2f98ed230144531d624d0cbe4022
parent34b82baa6724a336ede020b33e1bd002529def18 (diff)
downloadperl-software-in-gnu-guix-625831b9930c50114ab96dd635813a36655e7614.tar
perl-software-in-gnu-guix-625831b9930c50114ab96dd635813a36655e7614.tar.gz
format note content when creating slide
In html content, marked allow `Inline-Level Grammar` but not `Block-Level Grammar`, so when I write following: ``` note: * a * b * c ``` it become: ```html <p><em> a </em> b</p> <ul> <li>c</li> </ul> ``` unbelievable!
-rwxr-xr-xplugin/markdown/markdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index f4035e2..031160c 100755
--- a/plugin/markdown/markdown.js
+++ b/plugin/markdown/markdown.js
@@ -117,7 +117,7 @@
var notesMatch = content.split( new RegExp( options.notesSeparator, 'mgi' ) );
if( notesMatch.length === 2 ) {
- content = notesMatch[0] + '<aside class="notes" data-markdown>' + notesMatch[1].trim() + '</aside>';
+ content = notesMatch[0] + '<aside class="notes">' + marked(notesMatch[1].trim()) + '</aside>';
}
// prevent script end tags in the content from interfering