Shopify / prettier-plugin-liquid

Prettier Liquid/HTML plugin
https://npm.im/@shopify/prettier-plugin-liquid
MIT License
94 stars 15 forks source link

Weird formatting issue when using render inside attributes #175

Closed andershagbard closed 1 year ago

andershagbard commented 1 year ago

Unformatted source

<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>
charlespwd commented 1 year ago

This is probably caused by a different plugin because it seems to be working correctly in the playground.

charlespwd commented 1 year ago

Also when used by the Shopify Liquid VS Code extension:

https://user-images.githubusercontent.com/4990691/226417218-f357f339-e2d4-4155-8e9c-d6a6e6e771b8.mp4