mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-13 19:32:30 +02:00
More defensive coding for #91
This commit is contained in:
parent
e6ab126431
commit
1762dea647
|
@ -791,7 +791,7 @@ SimpleMDE.toolbar = toolbar;
|
|||
SimpleMDE.prototype.markdown = function(text) {
|
||||
if(window.marked) {
|
||||
// Update options
|
||||
if(this.options.singleLineBreaks !== false) {
|
||||
if(this.options && this.options.singleLineBreaks !== false) {
|
||||
marked.setOptions({
|
||||
breaks: true
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue