diff options
author | Wu Cheng-Han | 2017-10-05 09:59:07 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-10-05 09:59:07 +0800 |
commit | 8979f215ab8b175f0dd0da770b634b8f6c94ab68 (patch) | |
tree | 8fb383112f67dd56d5e778656f479290c910787b | |
parent | b469592db887fe0235670680270304e3457002f0 (diff) |
Fix blockquote not parse correctly in slide mode
Diffstat (limited to '')
-rwxr-xr-x | public/js/reveal-markdown.js | 2 | ||||
-rw-r--r-- | public/js/slide.js | 2 |
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(/</g, '<').replace(/>/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(/&lt;/g, '<').replace(/&gt;/g, '>') removeDOMEvents($('.slides')) $('.slides').show() |