-
Notifications
You must be signed in to change notification settings - Fork 27
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
Indented block formatting not stable #155
Comments
Use intention instead of backtick, when you're wrapping with backtick, plugin assume this is code and formatting them as code. Add four space as intention like this
|
I think what you're advising is exactly what's in Pass 1. Notice that on the next format it moves and on each format it moves again. ie not stable |
Please give me your comment completely. |
Here's a failing case in 0.3.34:
|
@hosseinmd have you confirmed this is a bug? Is it one you intend to work on or will it require a community fix? |
Yes, this is a bug. I will, but Now I don't have enough time. |
May be fixed by prettier/prettier#13532 If so will require #194 |
It's not fully stable but I think the remaining problem is #178 |
Bug description
A code block like this is stable,
But when the code block's syntax isn't specified, the tool changes to indentation syntax, which is not stable.
Actual
Example
Pass 0:
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Pass 5:
Pass 6:
Pass 7:
Expected
The text was updated successfully, but these errors were encountered: