prettier-plugin-liquid
prettier-plugin-liquid copied to clipboard
Fix issue #171
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.