`<style></style>` in comment results incorrect output
See original GitHub issuesource:
<!-- <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:
- Created 3 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >
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 Free
Top 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
We need to adjust this regex to account for comments.
This is a separate issue, please open a new issue for that with more details on now to reproduce