sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
745 stars 97 forks source link

Breaks quotes inside of quotes #320

Open KTibow opened 2 years ago

KTibow commented 2 years ago

If you have something like <Component prop='Something in "quotes".' /> this plugin turns it into "Something in "quotes"." which is invalid Svelte.

KTibow commented 2 years ago

This might be relevant: https://github.com/sveltejs/prettier-plugin-svelte/blob/ebd7e9a0dd7d5096098e16d74e6d88b9e249916f/src/print/index.ts#L433

dummdidumm commented 2 years ago

Related to #253

KTibow commented 2 years ago

Yeah I saw that but didn't fully read it, I wouldn't mind if you merged this issue into that one, but I'm fine using this one for tracking separately

lianghai commented 1 year ago

I’m also affected by this, but have been procrastinating about the bug report… Thanks, OP!

lianghai commented 1 year ago

Any progress on this?