Turn off line breaks in previews


#1

StackEdit is working very well for me, but I want the preview
behavior to better match GFM as it works on github.com.
The issue is that their flavor of Markdown does not
treat line breaks in source as line breaks in the output.

StackEdit seems determined to generate line breaks in
the output from line breaks in the input unless I
override the default “markdown: breaks: true” with

extensions:
  markdown:
    breaks: false

This is good enough for documents with longer lifetimes, but
not very convenient. I am trying the Chrome extension, and it
makes new temp files every time I go into StackEdit, so I have to
override every time to get the effect.

I tried using the (More … ) Settings like this:

newFileProperties:
  extensions:
    preset: default
    markdown:
      breaks: false

but it seems to have no effect.

Does anyone have any ideas on this?


#2

Ahah, it looks like I have got it. The settings for this need
to be slightly different. It should read like:

newFileProperties: |
  extensions:
    preset: default
    markdown:
      breaks: false

In other words a “pipe” symbol following newFileProperties:.