diff --git a/public/js/reveal-markdown.js b/public/js/reveal-markdown.js index ad5bfd04..c49bb9a2 100644 --- a/public/js/reveal-markdown.js +++ b/public/js/reveal-markdown.js @@ -103,7 +103,7 @@ import { md } from './extra' // prevent script end tags in the content from interfering // with parsing - content = content.replace(/<\/script>/g, SCRIPT_END_PLACEHOLDER) + content = content.replace(/<\/script>/gi, SCRIPT_END_PLACEHOLDER) return '' } diff --git a/public/js/slide.js b/public/js/slide.js index 61546339..455986f4 100644 --- a/public/js/slide.js +++ b/public/js/slide.js @@ -80,6 +80,8 @@ const defaultOptions = { } var options = meta.slideOptions || {} +// delete dependencies to avoid import user defined external resources +delete options.dependencies if (Object.hasOwnProperty.call(options, 'spotlight')) { defaultOptions.dependencies.push({