Adding quotes around output markup with | json
is not a safe formatting operation
#377
Labels
area:prettier-plugin
Bug
Something isn't working
Severity: 4
theme bugs that won't be prioritized in the near future
Describe the bug
Formatting the document causes quotation marks to be added around output markup that contains
| json
, which is not a safe formatting operation if the value being piped to thejson
filter is a string.Unformatted source
No quotes around the tag:
Expected output
(no change)
Actual output
Adds quotes around tag:
Which gets evaluated as:
(Or maybe that's just the way Chrome renders it on the 'Elements' tab. When I copy the outerHTML to a clipboard it looks like
""someValue""
)And then the element's
dataset
gets changed from:to:
Debugging information
The text was updated successfully, but these errors were encountered: