mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-01 15:11:02 -06:00
Commit distribution files
This commit is contained in:
parent
8d07c5e7f4
commit
c55b5c6ecb
2
dist/simplemde.min.css
vendored
2
dist/simplemde.min.css
vendored
File diff suppressed because one or more lines are too long
14
dist/simplemde.min.js
vendored
14
dist/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
@ -829,24 +829,24 @@ SimpleMDE.prototype.markdown = function(text) {
|
||||
if(window.marked) {
|
||||
// Initialize
|
||||
var markedOptions = {};
|
||||
|
||||
|
||||
|
||||
|
||||
// Update options
|
||||
if(this.options && this.options.renderingConfig && this.options.renderingConfig.singleLineBreaks !== false) {
|
||||
markedOptions.breaks = true;
|
||||
}
|
||||
|
||||
|
||||
if(this.options && this.options.renderingConfig && this.options.renderingConfig.codeSyntaxHighlighting === true && window.hljs) {
|
||||
markedOptions.highlight = function(code) {
|
||||
return hljs.highlightAuto(code).value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Set options
|
||||
marked.setOptions(markedOptions);
|
||||
|
||||
|
||||
|
||||
|
||||
// Return
|
||||
return marked(text);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user