Skip to content
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

Weird formatting issue when using render inside attributes in .liquid files #142

Closed
andershagbard opened this issue Mar 30, 2023 · 1 comment · Fixed by #143
Closed

Weird formatting issue when using render inside attributes in .liquid files #142

andershagbard opened this issue Mar 30, 2023 · 1 comment · Fixed by #143
Assignees

Comments

@andershagbard
Copy link

Config:

{
  "plugins": ["@shopify/prettier-plugin-liquid", "prettier-plugin-tailwindcss"]
}

Input

<div class="block {% render 'some-snippet', settings: section.settings %}"></div>

Expected output

<div class="block {% render 'some-snippet', settings: section.settings %}"></div>

Actual output

<div class="block {% render 'some-snippet', settings: section.ssettingss "></div>
@thecrypticace
Copy link
Contributor

Hey, thanks for reporting this. I've merged a fix for this in #143 and will be in the next release (will be soon).

You can try it out before we do a release by using our insiders build: npm install prettier-plugin-tailwindcss@insiders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants