sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
714 stars 95 forks source link

Crashes when using schema.org JSON-LD #414

Closed benmccann closed 5 months ago

benmccann commented 6 months ago

The following .svelte file will cause a crash:

<svelte:head>
    <script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "Corporation",
        "name": "C3 Ventures",
        "description": "C3 Ventures invests in and advises early stage ventures.",
        "naics": "523910",
        "url": "https://c3.ventures",
        "logo": "https://c3.ventures/images/c3-logo-white.png"
    }
    </script>
</svelte:head>
curran commented 5 months ago

Seems related to

https://github.com/sveltejs/prettier-plugin-svelte/issues/419

dummdidumm commented 5 months ago

There should only be a log, but it's harmless, file formatting continues to work. Either way, closed by #424