Defect #22323

Markdown newline rendering broken

Added by Viktor Berke over 1 year ago. Updated over 1 year ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
Resolution: Affected version:3.2.1

Description

As per the specs Markdown should not insert <br /> for single line breaks. <br /> should only occur for:

- A line ending with 2 or more spaces, then a line break.
- One or more blank lines between paragraphs lines. In other words, 2 or more line breaks.

GitHub is consistent with this in wiki formatting. In GitHub issues a single line break also triggers a rendered line break, the reason for this is beyond me but that's also against the specs.

Please fix this. This actually breaks Pandoc conversion from Textile pages because Pandoc occasionally inserts line breaks even within paragraphs and this causes line breaks in the rendered text as well thus breaking the format.


Related issues

Related to Redmine - Feature #22005: Rake task for converting from Textile to Markdown New

History

#1 Updated by Viktor Berke over 1 year ago

Since I can't add related issues, I'll just link it: Rake task for converting from Textile to Markdown

#2 Updated by Go MAEDA over 1 year ago

  • Category changed from Wiki to Text formatting

#3 Updated by Toshi MARUYAMA over 1 year ago

  • Related to Feature #22005: Rake task for converting from Textile to Markdown added

Also available in: Atom PDF