-
Notifications
You must be signed in to change notification settings - Fork 14
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
Issue formatting attributes #163
Comments
Using an old version of the plugin maybe? Is this on v1.0.6? Same thing happens in the Shopify Liquid VS Code extension or the Prettier extension. |
Yeah, using VS code with v1.0.6.
Perhaps it's something else in the file that's causing the issue? It's in theme.liquid, which is quite large. |
Does it happen if you paste your entire code in the playground? |
Also, might be related to prettier-plugin-tailwindcss? Given this is an error in the |
Describe the bug
When formatting the content of a class attribute, extra characters are added to the liquid tag and the closing
}}
is removed.Unformatted source
Expected output
Actual output
Debugging information
Additional context
Screenshot of error diff:
The issue can be fixed by adding
{% # prettier-ignore-attributes %}
above the element.The text was updated successfully, but these errors were encountered: