prettier-plugin-astro icon indicating copy to clipboard operation
prettier-plugin-astro copied to clipboard

🐛 BUG: Prettier-ignore comment doesn't work with astro files

Open zellwk opened this issue 3 years ago • 0 comments

Describe the Bug

The <!-- prettier-ignore --> comment doesn't work in .astro files. Prettier continues to format the content.

Kapture 2022-10-01 at 18 45 59

But this same code works in a normal HTML file. Prettier respects the comment.

Steps to Reproduce

  1. npm init astrousing empty project
  2. Put the following code inside the index.astro file.
<!-- prettier-ignore -->
  <div class="content-block">
      Paragraph 

      Paragraph

      ## Header 

      Paragraph
  </div>
  1. Format the document.

zellwk avatar Oct 01 '22 10:10 zellwk