gruehle / MarkdownPreview

Brackets extension for previewing markdown files
MIT License
277 stars 61 forks source link

Add option to use regular MD instead of the GitHub variant #30

Closed ricardograca closed 10 years ago

ricardograca commented 10 years ago

MarkdownPreview uses the GitHub flavoured markdown by default. This may cause some problems for people that want to format documents using the standard syntax.

There should be a configuration option to turn off the GitHub variations and use regular Markdown. Possibly other variants could be included as options as well.

gruehle commented 10 years ago

@ricardograca thanks for the report. This extension uses GitHub Flavored Markdown by default, which treats all newlines as real line breaks.

I plan on adding options in the near future. These will include a setting to disable GitHub Flavored Markdown. In the meantime, you can set breaks to false on line 168 of main.js.

ricardograca commented 10 years ago

Oh ok, I wasn't aware that it was the GH variant. I use hard line breaks so that I don't end up with extremely long lines that can't be viewed properly on GitHub, on diffs, etc. I edited the description and title to better reflect the real issue here.

ricardograca commented 10 years ago

Another thing I just noticed is that your own README has hard line breaks, however when viewed on GitHub they aren't treated as line breaks. What gives?

peterflynn commented 10 years ago

This would be fixed by my pull request #33

gruehle commented 10 years ago

Fixed in the 0.1.5 version of the extension. Thanks @peterflynn!