summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2017-10-05 09:59:07 +0800
committerWu Cheng-Han2017-10-05 09:59:07 +0800
commit8979f215ab8b175f0dd0da770b634b8f6c94ab68 (patch)
tree8fb383112f67dd56d5e778656f479290c910787b
parentb469592db887fe0235670680270304e3457002f0 (diff)
Fix blockquote not parse correctly in slide mode
Diffstat (limited to '')
-rwxr-xr-xpublic/js/reveal-markdown.js2
-rw-r--r--public/js/slide.js2
2 files changed, 1 insertions, 3 deletions
diff --git a/public/js/reveal-markdown.js b/public/js/reveal-markdown.js
index 94f6fb91..d15b5ebd 100755
--- a/public/js/reveal-markdown.js
+++ b/public/js/reveal-markdown.js
@@ -320,7 +320,7 @@ import { md } from './extra'
var notes = section.querySelector('aside.notes')
var markdown = getMarkdownFromSlide(section)
-
+ markdown = markdown.replace(/&lt;/g, '<').replace(/&gt;/g, '>')
var rendered = md.render(markdown)
rendered = preventXSS(rendered)
var result = window.postProcess(rendered)
diff --git a/public/js/slide.js b/public/js/slide.js
index b88ac022..59a352ec 100644
--- a/public/js/slide.js
+++ b/public/js/slide.js
@@ -55,8 +55,6 @@ const slideOptions = {
const slides = RevealMarkdown.slidify(body, slideOptions)
$('.slides').html(slides)
RevealMarkdown.initialize()
-// fix < and > were doubly escaped
-$('.slides')[0].innerHTML = $('.slides')[0].innerHTML.replace(/&amp;lt;/g, '&lt;').replace(/&amp;gt;/g, '&gt;')
removeDOMEvents($('.slides'))
$('.slides').show()