fix: remove is:raw from rehype-prism plugin#15297
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 8434141 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
6586950 to
737bbc9
Compare
Contributor
|
| 📦 Package | 🔒 Before | 🔓 After |
|---|---|---|
| eslint-plugin-regexp | trusted-with-provenance | none |
| @cloudflare/kv-asset-handler | trusted-with-provenance | none |
| @cloudflare/unenv-preset | trusted-with-provenance | none |
| workerd | trusted-with-provenance | none |
| @sveltejs/vite-plugin-svelte-inspector | trusted-with-provenance | provenance |
| @sveltejs/vite-plugin-svelte | trusted-with-provenance | provenance |
| jsdoc-type-pratt-parser | trusted-with-provenance | none |
| miniflare | trusted-with-provenance | none |
| youch | provenance | none |
| @cloudflare/workerd-darwin-64 | trusted-with-provenance | none |
| @cloudflare/workerd-darwin-arm64 | trusted-with-provenance | none |
| @cloudflare/workerd-linux-64 | trusted-with-provenance | none |
| @cloudflare/workerd-linux-arm64 | trusted-with-provenance | none |
| @cloudflare/workerd-windows-64 | trusted-with-provenance | none |
| wrangler | trusted-with-provenance | none |
Contributor
|
sorry about the close. |
Member
Author
|
No problem at all! Thanks for re-opening it. |
florian-lefebvre
approved these changes
Feb 4, 2026
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Member
Author
|
Thank you for reviewing and approving! |
Merged
Member
Author
|
and thank you for merging! 😄 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes: #13400
Changes
I removed the
is:rawattribute from the code generated by the rehype-prism plugin.Summary of Comment: #13400 (comment)
The
is:rawattribute is handled within @astrojs/compiler.@astrojs/compiler is used within
astroVitePlugin.Subsequent plugins do not use @astrojs/compiler. (Search results for the
compilefunction usingtransformimported from @astrojs/compiler)The
markdownVitePlugin, which uses the rehype-prism plugin, is configured afterastroVitePlugin.Consequently, this causes the
is:rawattribute added bymarkdownVitePluginto remain unchanged until the end.astro/packages/astro/src/core/create-vite.ts
Lines 152 to 162 in 8ca97e1
Testing
I added a test to verify that the
is:rawattribute is not included in the post-build code.Docs
N/A