-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
markdown: remove unnecessary blockquote >
#9125
base: main
Are you sure you want to change the base?
Conversation
This solution seems to be fighting the consequences, not the reason of the bug. |
Once the right solution is found, it'd be also great to add |
0617bd3
to
cc43e2b
Compare
Lines shouldn't be joined when Prettier pr-9125 --parser markdown Input: > `1`
> `2` Output: > `1` `2`
Expected: same as input |
A solution that involves replacing |
@thorn0 Thanks. I found the cause that prettier/src/language-markdown/preprocess.js Lines 47 to 57 in 810325d
And I added a test for nested blockquotes. 64f13fc |
> `x` > `y` | ||
|
||
// Prettier master | ||
> `x` `y` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This output is incorrect with our default options(--prose-wrap=preserve
).
Can you change this to
> `x`
> `y`
?
Prettier pr-9125
Playground link
--parser markdown
Input:
> `x`
> `y`
Output:
> `x`
> `y`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add tests for prose-wrap=never
and prose-wrap=preserve
with updating tests/markdown/jsfmt.spec.js
?
👋 @shisama, would you be interested in updating this PR to help us close #9099? See suggestion from @sosukesuzuki above. |
Fix #9099
This removes unnecessary blockquote
>
when the paragraph is made a single line.I am not confident my implementation is good. Please tell me if you know a better way to fix this.
docs/
directory)changelog_unreleased/*/pr-XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨