Prism at runtime breaks existing mdsvex code block highlighting #486
Labels
assigned
Whether or not this bug has been assigned some to some other issues as a subtask or pre-req
environment
An issue with the environment
Milestone
For some library docs, I have a playground for users to test out components with different inputs and a dynamic code block that changes depending on the inputs. Since the code block is dynamic I use Prism for it at runtime. For everything else I use mdsvex.
In
@sveltejs/kit@1.0.0-next.345
everything seems to work fine, but now I upgraded to the latest version of SvelteKit and simply importing Prism viaimport Prism from 'prismjs';
breaks code block highlighting for all mdsvex code blocks, but only with JavaScript enabled. I'm usingmdsvex@0.10.6
,svelte@3.54.0
and@sveltejs/kit@1.0.0-next.581
--> Here is a minimal StackBlitz reproduction.
+page.md
to "fix" it.If you need additional information or think I should report this issue somewhere else (i.e. SvelteKit or Prism), please tell me.
The text was updated successfully, but these errors were encountered: