should not convert quotes already in template literal
See original GitHub issueI just noticed when you have something like
html`<span class="">`
the plugin wrongly detects the inner "
quotes and converts them to `
when typing ${
inside, so the above turns into
html`<span class=`${}`>`
which is invalid code
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Template literals (Template strings) - JavaScript | MDN
Template literals are enclosed by backtick ( ` ) characters instead of double or single quotes. Along with having normal strings, template ...
Read more >Default to template literal strings · Issue #54 · prettier ... - GitHub
I think it would be surprising to a lot of people if they typed double-quotes and they were automatically converted into a template...
Read more >Is there a downside to using ES6 template literals syntax ...
In fact, I might even argue that it is good to always use template literals: You can already use single quotes or double...
Read more >JavaScript: Template Literals (ES6) | by Bahay Gulle Bilgi
Template literals do not need to escape single or double quotes · Template literals make substitutions more readable · An expression is passed ......
Read more >Conventional Strings Over Template Literals in JavaScript
Conventionally, to write a string in JavaScript, we could either use singleQuote or doubleQuote. E.g.: With the introduction of template ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
At this time multiline isn’t supported. I might work on that soon though.
Oh okay that’s helpful to know. I think I know how to solve this and will implement the fix soon.