Quotation marks inside of attributes
earthboundkid opened this issue · comments
If I have a template command that uses quotation marks inside of an HTML attribute, like <div data-x='{{ doThing "whatever" }}'>
, I like for the outer quotation marks to be a single quote '
so that my text editor (which doesn't know about Go templates) highlights the block semi-correctly, but the plugin changes it to be a double quote "
.
This is a default prettier behavior, and not specific to this plugin.
This plugin just wraps around the default HTML formatter of prettier. Therefore, this issue won't ever be resolved.
Okay, my workaround has been to use backticks like
<a href="{{ thing `whatever` }}">hi</a>
That highlights better than using double quotes.