Project

General

Profile

Actions

Defect #22323

closed

Markdown newline rendering broken

Added by Viktor Berke over 8 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

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.


Files

22323-with-test.patch (1.47 KB) 22323-with-test.patch Martin Cizek, 2019-08-20 16:28
22323-with-test-after-r18381.patch (1.48 KB) 22323-with-test-after-r18381.patch Martin Cizek, 2019-08-22 15:02

Related issues

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

Actions
Is duplicate of Redmine - Feature #32424: CommonMark Markdown Text FormattingClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF