More function expose workaround for reveal-markdown.js
This commit is contained in:
@@ -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'));
|
||||
|
||||
@@ -51,6 +51,7 @@ var filterXSSOptions = {
|
||||
function preventXSS(html) {
|
||||
return filterXSS(html, filterXSSOptions);
|
||||
}
|
||||
window.preventXSS = preventXSS;
|
||||
|
||||
module.exports = {
|
||||
preventXSS: preventXSS
|
||||
|
||||
Reference in New Issue
Block a user