More function expose workaround for reveal-markdown.js
This commit is contained in:
parent
70c20aadda
commit
e10203b7e9
3 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue