claudioc / jingo

Node.js based Wiki
MIT License
1.02k stars 184 forks source link

Option to enable/disable GFM line breaks #75

Closed alexpolozov closed 9 years ago

alexpolozov commented 9 years ago

This PR adds an option to enable or disable GFM line breaks in the Markdown parser.

Many people (myself including) like most features of GFM, but not its line break policy. For instance, I use Jingo as my personal wiki for academic papers. The content I put there is mostly automatically converted LaTeX (or manually written text with LaTeX embeddings). When I write LaTeX, I usually start each sentence from a new line, because (a) it greatly simplifies diffing and merging of plain text in Git, and (b) LaTeX doesn't care about line breaks. With Markdown, I can keep the same behavior if GFM line breaks are disabled.

claudioc commented 9 years ago

Thank you! I'll definitely merge this one :)