Skip to content

fix(prettier-plugin-liquid): respect liquidSingleQuote in HTML attributes - #1342

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/fix-html-attribute-liquid-quotes
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/fix-html-attribute-liquid-quotes

Conversation

@efegokdemir

Copy link
Copy Markdown

What are you adding in this PR?

Apply liquidSingleQuote to parsed Liquid strings inside HTML attribute values. The rest of the attribute source is preserved, including whitespace and other Liquid markup. Fixes #264.

What's next? Any followup issues?

None identified.

What did you learn?

The attribute printer copied the whole value from source, bypassing the Liquid string printer.

Tophatting

The regression failed on pristine main and passes with the fix. The plugin suites passed under Prettier 2 and 3 (144 tests each), along with attribute idempotence, type-check, formatting check and build. Screenshots are not applicable.

Before you deploy

  • I included a patch bump changeset

@efegokdemir
efegokdemir requested a review from a team as a code owner October 17, 2026 11:24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatter ignores liquid quotes inside HTML attributes

1 participant