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

Code transformers that replace entities do not play nice with the built in highlighter #304

Open
Tracked by #588
pngwn opened this issue Sep 10, 2021 · 5 comments
Open
Tracked by #588
Labels
assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req 🕵️ I'm looking into it
Milestone

Comments

@pngwn
Copy link
Owner

pngwn commented Sep 10, 2021

Details: #93 (comment)

@pngwn
Copy link
Owner Author

pngwn commented Sep 18, 2021

This may just be a docs issue but need to be resolved one way or the other for v1.

@pngwn pngwn added 🕵️ I'm looking into it v1 labels Sep 18, 2021
@pngwn pngwn added this to the 1.0 milestone Oct 16, 2021
@pngwn pngwn added this to mdsvex Oct 16, 2021
@pngwn pngwn moved this to Refine in mdsvex Oct 16, 2021
@LeoDog896
Copy link

LeoDog896 commented Apr 3, 2023

I've encountered the same issue when integrating with rehype-pretty-code. Explicitly, I've set the highlight configuration option to false, but the HTML entity transformation still happens in it. If you need an example to test on, do let me know 👍.

@willuhmjs
Copy link

I've encountered the same issue when integrating with rehype-pretty-code. Explicitly, I've set the highlight configuration option to false, but the HTML entity transformation still happens in it. If you need an example to test on, do let me know 👍.

I second this and can do the same.

@willuhmjs
Copy link

This is a pretty big issue and I haven't seen any movement. Are there any workarounds to this?

@LeoDog896
Copy link

LeoDog896 commented May 28, 2023

I was able to fix my issue by manually patching the plugin I was using to forcibly use svelte-like encodings: rehype-pretty-code patch and shiki patch.

@pngwn pngwn removed the v1 label Feb 23, 2024
@pngwn pngwn mentioned this issue Feb 23, 2024
13 tasks
@pngwn pngwn added the assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req 🕵️ I'm looking into it
Projects
No open projects
Status: Refine
Development

No branches or pull requests

3 participants