toptensoftware / markdowndeep

Open-source implementation of Markdown for C# and Javascript
268 stars 120 forks source link

Implemented an option to enable Github-Falboured-Markup style linebreaks - i.e. no double space required #22

Open samueldjack opened 12 years ago

samueldjack commented 12 years ago

This is achieved by pre-processing the text with a regex before transforming it in the usual way.

The option is called EasyLineBreaks, and has been implemented for client and server.

vcaraulean commented 12 years ago

Apart of github this king of line break is used in Octopress, a markdown based blog engine. Will be nice to see this feature implemented in MarkdownDeep...

toptensoftware commented 10 years ago

I'm a bit confused by the requirement here, and this discussion confuses things even more.

Is the requirement simply that all newlines in a paragraph insert a <br /> tag? If so, that can probably be more easily (and more accurately) implemented internally - rather than as a regex pre-parse.

Jeff-Tian commented 10 years ago

Wait for this functionality...

Edddy commented 10 years ago

It's very hard to teach users about "two spaces makes a new line". They expect a new line after they type enter. An option two allow that all newlines in a paragraph insert a
tag would be nice.