-
Notifications
You must be signed in to change notification settings - Fork 97
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
my code is replaced with ✂prettier:content✂ #240
Comments
so #130 didn't fix it. |
I have the same issue as well when using this code: <iframe
class="content"
id="inlineviewer"
title="Inline Viewer"
name="Inline Viewer"
srcdoc={`<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'/>
<title>Inline Viewer</title>
<style></style>
</head>
<body>
</body>
</html>`}/> It produces: <iframe
class="content"
id="inlineviewer"
title="Inline Viewer"
name="Inline Viewer"
srcdoc={`<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'/>
<title>Inline Viewer</title>
<style ✂prettier:content✂=""></style>
</head>
<body>
</body>
</html>`}/> And when attempting to escape the style tag using |
Duplicate of #70 |
@dummdidumm This issue still exists as of:
Example: Input
Output
|
Using version 2.8.0 I'm getting this: Original: {'<script></script>'}
{`<script></script>`} Formatted: {'<script ✂prettier:content✂="">{}</script>'}
{`<script ✂prettier:content✂="">{}</script>`} |
My code:
is replaced with:
|
Happening in July 2023... Simple reproducible example in a svelte file conditionally rendering SVGs: <script>
export let name;
</script>
{#if name === 'sunlight'}
<!-- prettier-ignore -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 423.9 590.2">
<circle class="fill-accent-500" cx="65.8" cy="65.8" r="65.8" />
</svg>
{:else if name === 'time'}
<!-- prettier-ignore -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 675.67 631.95">
<style>
.st0{fill:#94A3B8;} /*400*/
</style>
<circle cx="166" cy="508.87" r="17"/>
</svg>
{/if} Is replaced with:
|
Can confirm, this is still happening |
For me the issue because of PhpStorms I disabled those from my git commit checks and am using either the PhpStorm Prettier plugin's |
Can confirm, this is still happening. |
Why is this issue closed? Do we need to make a new issue to reopen it? |
Yes, if people still have certain code snippets that fail using the latest version of this plugin, then they should open a new issue with that code snippet. |
I also had this issue in webstorm, but similar to @digvijayad I got around it by disabling the build in |
I've just got the same issue with Intellij, but in my case disabling |
Thank you, this fixed it for me in PHPstorm. |
To disable |
I still have this problem, with for example this kind of code:
it's replaced for:
tried even comment above {@html ...}, but still it was transforming it to that ugly prettier:content thing.
https://www.youtube.com/watch?v=lHK66Y06OoE
@dummdidumm
Originally posted by @Mlocik97 in #59 (comment)
The text was updated successfully, but these errors were encountered: