Comments get removed from formated Svelte Component
See original GitHub issueHi when I format a svelte component, any comment that is at the end of an element gets removed.
Gets removed:
<div>
<div/>
<!-- testing 123 -->
</div>
Doesn’t get removed:
<div>
<!-- testing 123 -->
<div/>
</div>
Any solutions?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
HTML comments inside svelte markup cause formatting to fail
HTML comments inside svelte markup prevents remaining markup from being formatted. To Reproduce For example (with "svelteStrictMode": true ) this: <Component ...
Read more >Docs • Svelte
You can use HTML comments inside components. ... Comments beginning with svelte-ignore disable warnings for the next block of markup. Usually, these are ......
Read more >"Svelte for VS Code" with Prettier deletes commented code
I installed Svelte for VS Code. When I saved .svelte file all comments get deleted. This does not happen for .html, .js or...
Read more >prettier-plugin-svelte | Yarn - Package Manager
Format your HTML, CSS, and JavaScript using prettier; Format Svelte syntax, e.g. each loops, if statements, await blocks, etc.
Read more >Add a commenting platform to a Svelte app
Create a Svelte component that displays comments. The component is as simple as this (corresponding pull request):. <svelte:head> <script src=" ...
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
This was released in the VS Code extension version 104.4.2
Thanks for fixing that so quickly!
Kind Regards, Ian Hogers
Email Signature, phone: 0458 452 419, email: info@ianhogers.com On 2/17/2021 7:45 PM, Simon H wrote: