How to use with mdsvex #386
Replies: 3 comments
-
|
Hello, welcome and thank you for your interest in Expressive Code! Unfortunately, I have no experience with Svelte. If mdsvex really supports rehype plugins and is based on unified as their docs seem to state, it should work with the EC rehype plugin as long as code blocks are represented as expressive-code/packages/rehype-expressive-code/src/utils.ts Lines 7 to 23 in 85a3641 If you have a chance to dump or examine the HAST tree of an example document including code blocks, this could make it easier to see why it doesn't seem to work for you in that setup. |
Beta Was this translation helpful? Give feedback.
-
|
I found this guy with |
Beta Was this translation helpful? Give feedback.
-
|
Hello! We are moving feature requests and support questions to discussions and using issues only for bugs to help better track those going forward. See you in the Discussions tab! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to use expressive-code in my Svelte 5 / Sveltekit project using mdsvex using the rehype plugins, but I don't get anything different. Anyone with a working example in svelte ?
Beta Was this translation helpful? Give feedback.
All reactions