More function expose workaround for reveal-markdown.js

This commit is contained in:
Yukai Huang 2016-10-10 08:24:58 +08:00
parent 70c20aadda
commit e10203b7e9
3 changed files with 5 additions and 0 deletions

View file

@ -124,6 +124,8 @@
"file-loader": "^0.9.0",
"imports-loader": "^0.6.5",
"json-loader": "^0.5.4",
"less": "^2.7.1",
"less-loader": "^2.2.3",
"style-loader": "^0.13.1",
"url-loader": "^0.5.7",
"webpack": "^1.13.2"

View file

@ -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'));

View file

@ -51,6 +51,7 @@ var filterXSSOptions = {
function preventXSS(html) {
return filterXSS(html, filterXSSOptions);
}
window.preventXSS = preventXSS;
module.exports = {
preventXSS: preventXSS