|
|
|
@ -1401,6 +1401,12 @@ SimpleMDE.prototype.markdown = function(text) {
|
|
|
|
|
} else {
|
|
|
|
|
markedOptions.breaks = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(this.options && this.options.renderingConfig && this.options.renderingConfig.sanitize === true) {
|
|
|
|
|
markedOptions.sanitize = true;
|
|
|
|
|
} else {
|
|
|
|
|
markedOptions.sanitize = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(this.options && this.options.renderingConfig && this.options.renderingConfig.codeSyntaxHighlighting === true && window.hljs) {
|
|
|
|
|
markedOptions.highlight = function(code) {
|
|
|
|
@ -2025,4 +2031,4 @@ SimpleMDE.prototype.toTextArea = function() {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = SimpleMDE;
|
|
|
|
|
module.exports = SimpleMDE;
|
|
|
|
|