sveltejs / prettier-plugin-svelte

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

Breaks quotes inside of quotes #320

Open KTibow opened 1 year ago

KTibow commented 1 year 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 1 year ago

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

dummdidumm commented 1 year ago

Related to #253

KTibow commented 1 year 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?