summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorYukai Huang2016-10-10 08:24:58 +0800
committerYukai Huang2016-10-10 08:24:58 +0800
commite10203b7e9bb407fceee1f176dc8ff36b59a4acd (patch)
tree795f7211f98432bc0647e72b065689ea047700e8 /public/js
parent70c20aaddaff75c3d0b7eb0fd53da13bb5651387 (diff)
More function expose workaround for reveal-markdown.js
Diffstat (limited to 'public/js')
-rw-r--r--public/js/extra.js2
-rw-r--r--public/js/render.js1
2 files changed, 3 insertions, 0 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index d4a6c5cd..4ec7e80f 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -442,6 +442,7 @@ function postProcess(code) {
}
return result;
}
+window.postProcess = postProcess;
function generateCleanHTML(view) {
var src = view.clone();
@@ -811,6 +812,7 @@ var md = markdownit('default', {
typographer: true,
highlight: highlightRender
});
+window.md = md;
md.use(require('markdown-it-abbr'));
md.use(require('markdown-it-footnote'));
diff --git a/public/js/render.js b/public/js/render.js
index 41b367a3..77778795 100644
--- a/public/js/render.js
+++ b/public/js/render.js
@@ -51,6 +51,7 @@ var filterXSSOptions = {
function preventXSS(html) {
return filterXSS(html, filterXSSOptions);
}
+window.preventXSS = preventXSS;
module.exports = {
preventXSS: preventXSS