question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

should not convert quotes already in template literal

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
meganroggecommented, Oct 4, 2020

At this time multiline isn’t supported. I might work on that soon though.

1reaction
meganroggecommented, Oct 3, 2020

Oh okay that’s helpful to know. I think I know how to solve this and will implement the fix soon.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found