Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Fix issue #171 #202

Closed
wants to merge 1 commit into from
Closed

Fix issue #171 #202

wants to merge 1 commit into from

Conversation

Wilhansen
Copy link

@Wilhansen Wilhansen commented Aug 7, 2023

The issue is due to the plugin treating an HtmlRawNode as preformatted text not to be touched the moment it detects the ` character (for template literals) anywhere in the body. Aside from not formatting the contents, it doesn't strip the leading and trailing newlines resulting in compounding new lines everytime prettier is run against the file. This fixes the compounding line issue in particular but does not fix the contents not being prettified when a ` is detected anywhere in the text.

The issue is due to the plugin treating an HtmlRawNode as preformatted
text not to be touched the moment it detects the ` character (for
template literals) anywhere in the body. Aside from not formatting the
contents, it doesn't strip the leading and trailing newlines resulting
in compounding new lines everytime prettier is run against the file.
This fixes the compounding line issue in particular but does not fix the
contents not being prettified when a ` is detected anywhere in the text.
@jamesmengo
Copy link
Contributor

Moving to https://github.com/Shopify/theme-tools, please re-open there if still relevant!

@jamesmengo jamesmengo closed this Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants