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.

`<style></style>` in comment results incorrect output

See original GitHub issue

source:

<!-- <style>
.foo {
  background-image: url("x");
}
</style> -->

<style lang="scss">
.foo {
  background-image: url("x");
}

$map: (
  'alpha': 10,
  'beta': 20,
  'gamma': 30
);
</style>

<span>Hi</span>

result:

<span>Hi</span>

<!-- <style ✂prettier:content✂="Ci5mb28gewogIGJhY2tncm91bmQtaW1hZ2U6IHVybCgieCIpOwp9Cg=="></style> -->
<style lang="scss">
  .foo {
    background-image: url('x');
  }

  $map: (
    'alpha': 10,
    'beta': 20,
    'gamma': 30
  );
</style>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dummdidummcommented, Feb 22, 2021

We need to adjust this regex to account for comments.

0reactions
dummdidummcommented, Mar 20, 2021

This is a separate issue, please open a new issue for that with more details on now to reproduce

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intellij IDEA using the wrong comment style - Stack Overflow
4, and when I try to insert a line/block comment into an HTML file ( *.html ), it inserts a jinja2 style comment....
Read more >
Incorrect formatting of C# comments · Issue #29482 - GitHub
This seems by design to me... it's a common pattern to have multi-line comments at the end of constructs, and to align them...
Read more >
Comments in CSS - CSS-Tricks
I have a followup question to determine if this is style or need. I see basic comments in css as described /* comment...
Read more >
ISSUES WITH C++ STYLE COMMENTS AND C COMPILER
EXPECTEN OUTPUT: Should not produce those error messages. Local fix. You can use -qcpluscmt to have the C compiler accept C++ style comments...
Read more >
Best practices for writing code comments - Stack Overflow Blog
Best practices for writing code comments · Rule 1: Comments should not duplicate the code. · Rule 2: Good comments do not excuse...
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