diff options
author | Liu Zhanhong <275368990@qq.com> | 2015-10-19 19:50:43 +0800 |
---|---|---|
committer | Liu Zhanhong <275368990@qq.com> | 2015-10-19 19:50:43 +0800 |
commit | 625831b9930c50114ab96dd635813a36655e7614 (patch) | |
tree | c2d4a289c75f2f98ed230144531d624d0cbe4022 /plugin/markdown | |
parent | 34b82baa6724a336ede020b33e1bd002529def18 (diff) | |
download | fosdem-2018-presentation-625831b9930c50114ab96dd635813a36655e7614.tar fosdem-2018-presentation-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!
Diffstat (limited to 'plugin/markdown')
-rwxr-xr-x | plugin/markdown/markdown.js | 2 |
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 |