diff --git a/lib/markdown-it-helper.coffee b/lib/markdown-it-helper.coffee index 7712d94e..a2f7c272 100644 --- a/lib/markdown-it-helper.coffee +++ b/lib/markdown-it-helper.coffee @@ -45,7 +45,9 @@ init = (rL) -> markdownIt.use math, mathBrackets needsInit = (rL) -> - markdownItOptions isnt getOptions() or markdownIt? or rL isnt renderLaTeX + not markdownIt? or + markdownItOptions.breaks isnt atom.config.get('markdown-preview-plus.breakOnSingleNewline') or + rL isnt renderLaTeX exports.render = (text, rL) -> init(rL) if needsInit(rL)