-
Notifications
You must be signed in to change notification settings - Fork 37
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
💡 RFC: Support prose-wrap option for text content in .astro files #414
Labels
feature
Suggestion / request for a new feature
Comments
My current workaround is to suffix every line with |
Does prose-wrap work in HTML files? I thought it was only for Markdown |
No, not until prettier/prettier#7595 is resolved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background & Motivation
Large text blocks are currently reflowed by this plugin to match the configured line width.
However, it is commonly considered best practice to insert a line break after semantic sections (e.g. end of sentence, after a comma, before a dependent clause etc.).
This makes the text easier to read and leads to smaller diffs whenever something has to be changed.
Proposed Solution
Possible solutions
Support the
prose-wrap
option from prettier for astro files.Alternatives considered
None
Risks, downsides, and/or tradeoffs
It is configurable so no real downsides apart from someone having to implement it.
Open Questions
Detailed Design
Issue from the Prettier repo where this feature was first requested and subsequently introduced: prettier/prettier#3183
Another issue from the Prettier repo about enabling support for this option in HTML and Vue files: prettier/prettier#7595
Help make it happen!
The text was updated successfully, but these errors were encountered: