summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
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()