Skip to content

Commit 6bda283

Browse files
author
Wes Cossick
committed
Fix single line breaks bug
1 parent 435b39f commit 6bda283

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/js/simplemde.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,9 @@ SimpleMDE.prototype.markdown = function(text) {
13921392

13931393

13941394
// Update options
1395-
if(this.options && this.options.renderingConfig && this.options.renderingConfig.singleLineBreaks !== false) {
1395+
if(this.options && this.options.renderingConfig && this.options.renderingConfig.singleLineBreaks === false) {
1396+
markedOptions.breaks = false;
1397+
} else {
13961398
markedOptions.breaks = true;
13971399
}
13981400

0 commit comments

Comments
 (0)