Skip to content
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

✂prettier:content✂="". SvelteKit Prettier bug. #466

Open
timscodebase opened this issue Oct 7, 2024 · 0 comments
Open

✂prettier:content✂="". SvelteKit Prettier bug. #466

timscodebase opened this issue Oct 7, 2024 · 0 comments

Comments

@timscodebase
Copy link

timscodebase commented Oct 7, 2024

Why does prettier keep adding ✂prettier:content✂="" to my head scripts.

Before

<Partytown
	script={`
	<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2145750142271743" ="anonymous">{}</script>
        <meta name="google-adsense-account" content="ca-pub-2145750142271743" />
	<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2145750142271743" crossorigin="anonymous">{}</script>
	<script async src="https://www.googletagmanager.com/gtag/js?id=G-FZH87M6DDV">
	</script>

	<script>
		window.dataLayer = window.dataLayer || []

		function gtag() {
			dataLayer.push(arguments)
		}

		gtag('js', new Date())
		gtag('config', 'G-FZH87M6DDV')
	</script>
`}
></Partytown>

After

<Partytown
	script={`
	<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2145750142271743"
     crossorigin="anonymous" ✂prettier:content✂="" ✂prettier:content✂="e30=">{}</script>
<meta name="google-adsense-account" content="ca-pub-2145750142271743" />
	<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2145750142271743"
     crossorigin="anonymous" ✂prettier:content✂="">{}</script>
	<script async src="https://www.googletagmanager.com/gtag/js?id=G-FZH87M6DDV">
	</script>
	<script>
		window.dataLayer = window.dataLayer || []

		function gtag() {
			dataLayer.push(arguments)
		}

		gtag('js', new Date())
		gtag('config', 'G-FZH87M6DDV')
	</script>
`}
></Partytown>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant