Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: prettier-ignore breaks file #420

Closed
hyperknot opened this issue Jun 13, 2024 · 1 comment
Closed

🐛 BUG: prettier-ignore breaks file #420

hyperknot opened this issue Jun 13, 2024 · 1 comment

Comments

@hyperknot
Copy link

Describe the Bug

<!-- prettier-ignore -->
{
  showStyleURL && (
    <pre id="style-url-pre">
      <code id="style-url-code">https://tiles.openfreemap.org/styles/liberty</code>
    </pre>
  )
}

<script is:inline src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>

gets reformatted into:

<!-- prettier-ignore -->
{
  showStyleURL && (
    <pre id="style-url-pre">
      <code id="style-url-code">https://tiles.openfreemap.org/styles/liberty</code>
    </pre>
  )
}

script is:inline src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>

(emphasis is on last lines missing < tag)

Steps to Reproduce

check snippet

@Princesseuh
Copy link
Member

Duplicate of #338

(The root cause is the same, even if that issue showcase a different situation)

@Princesseuh Princesseuh closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants