-
Notifications
You must be signed in to change notification settings - Fork 97
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
Prettier reformat adds unwanted whitespace to HTML #103
Comments
Prettier has a config option |
I found out you can use |
I created a pull request that fixes this problem. |
Given the following HTML:
Actual result
Formatted with
prettier-plugin-svelte
, my comma is moved to a new line, which introduces whitespace between the link and the comma:It prints “Please use Markdown , so”.
Desired result
I'm trying to avoid that whitespace before the comma.
When formatted with the
html
parser of Prettier, no whitespace is forced (REPL).Is
prettier-plugin-svelte
parsing this with something else than thehtml
parser and would it be possible to change that?The text was updated successfully, but these errors were encountered: