Open hyvyys opened 1 year ago
I think this issue may be related to #411.
When I applied Prettier to the following code, the beginning of the second prettier-ignore
comment disappeared.
<!-- prettier-ignore -->
<script>
if (condition1) {
foo
} else if (condition2) {
bar
}
else
{
baz
}
</script>
<!-- prettier-ignore -->
<script>
if (condition1) {
foo
} else if (condition2) {
bar
}
else
{
baz
}
</script>
I have the same bug, which makes using prettier-ignore
impossible in some files. Especially annoying when inserting svg.
Before
<!-- prettier-ignore -->
<a href="" class="btn btn--primary">Get your free proposal</a>
<!-- prettier-ignore -->
<Image class="cta__image" src={CtaImg} alt="" />
After
<!-- prettier-ignore -->
href="" class="btn btn--primary">Get your free proposal</a>
<!-- prettier-ignore -->
mage cla
Same issue here - at least I think. Correct me if Im wrong.
Before
<!-- prettier-ignore -->
<nav id="nav-links">
<a id="home" href="/"><span class="icon" id="home-logo"> </span>Home</a>
<a id="about" href="/about/"><span class="icon" id="about-logo"> </span>About</a>
<a id="blog" href="/blogs/"><span class="icon" id="blog-logo"> </span>Blogs</a>
</nav>
<style>
#nav-links {
height: 50px;
...
After
<!-- prettier-ignore -->
<nav id="nav-links">
<a id="home" href="/"><span class="icon" id="home-logo"> </span>Home</a>
<a id="about" href="/about/"><span class="icon" id="about-logo"> </span>About</a>
<a id="blog" href="/blogs/"><span class="icon" id="blog-logo"> </span>Blogs</a>
</nav>
<sty
<style>
#nav-links {
height: 50px;
...
Describe the Bug
Before save:
After save:
Code:
Steps to Reproduce
npm init astro
using default template