Skip to content

feat(markdown): preserve break style - #3325

Merged
azz merged 1 commit into
prettier:masterfrom
ikatyang:feat/markdown-preserve-break-style
Dec 3, 2017
Merged

azz merged 1 commit into
prettier:masterfrom
ikatyang:feat/markdown-preserve-break-style

Conversation

@ikatyang

Copy link
Copy Markdown
Member

Fixes #3319

Comment thread src/doc-printer.js
}

if (out.length) {
if (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there precedent for using the notion of "parser" in doc-* files?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, but this is the easiest way to support double-space break.

That's why I chose the backslash style break, the trailing whitespace syntax is super weird and conflict with the trim_trailing_whitespace rule.

@azz azz added this to the 1.9 milestone Nov 28, 2017
@azz
azz merged commit c1623d8 into prettier:master Dec 3, 2017
@ikatyang
ikatyang deleted the feat/markdown-preserve-break-style branch December 3, 2017 04:02
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 19, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants