Describe the bug
I'm using prettify to format my antlers files. When there is a escaped double quote in a attribute, the attribute will be wrong formatted and after a second prettifing, removed.
Impacted Products
Which Antlers Toolbox products does this bug apply to?
[ ] Antlers Toolbox for VS Code
[ ] Formatter CLI
[x] Antlers Prettier Plugin
[ ] Antlers Syntax Highlighting (external systems - not VS Code)
Versions and Other Plugins/Extensions
prettier: 3.3.2
prettier-plugin-antlers: 2.0.3
To Reproduce
Create a *.antlers.html template with the following code:
Describe the bug I'm using prettify to format my antlers files. When there is a escaped double quote in a attribute, the attribute will be wrong formatted and after a second prettifing, removed.
Impacted Products Which Antlers Toolbox products does this bug apply to?
Versions and Other Plugins/Extensions
prettier: 3.3.2 prettier-plugin-antlers: 2.0.3
To Reproduce
Create a *.antlers.html template with the following code:
Run prettify once:
After a second prettify run:
The last
attr
is formatted wrong after the first run and removed in the second run.Expected behavior
The attr should stay untouched. The syntax
attr="x-bind:disabled=\"submitting\""
is correct.If submitting a formatting bug, please include the template contents below as well as an attachment Add any problematic templates here.
Additional context Add any other context about the problem here.