You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Markdown: Preserve double-space line break syntax #3319
lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!
A line break … that is preceded by two or more spaces and does not occur at the end of a block is parsed as a hard line break
Prettier currently replaces this with CommonMark's single-backslash notation (which works fine in some places like GitHub issue comments), but this syntax is not supported by kramdown, the default Markdown parser used by GitHub Pages, so the lines are joined and the backslash characters are visible in output when prettied Markdown is rendered via GitHub Pages.
The kramdown syntax requires two backslash characters at the end of the line for line breaks, but this renders elsewhere as two visible backslashes rather than a line break: \\.
lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!
Activity
azz commentedon Nov 26, 2017
Trailing whitespace affecting output is... Unpleasant. But, alas, it is a bug.
ikatyang commentedon Nov 27, 2017
For reference, we followed the CommonMark spec, which is not 100% compatible with Kramdown.
infotexture commentedon Dec 7, 2017
👍 Looks like this was fixed for 1.9.
Might be worth tagging with the milestone for future reference so people know which versions of Prettier will support the
··\nsyntax.ikatyang commentedon Dec 7, 2017
Oops, missed this one.