Is it possible to mix mermaid and code block highlighting in the same file? #281
-
I have a simple page.headHtml:
What I'm finding when including both the mermaid example from the tips page and some python code is that the prism script conflicts with the mermaid script. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
There apparently is a way to tell Prism not to highlight certain blocks: PrismJS/prism#2074 (comment) But I cannot figure out how to make Mermaid play correctly with it. If you are able, let me know - we can modify the default snippet accordingly. |
Beta Was this translation helpful? Give feedback.
-
I gave up -- it looks like prism strips HTML, and I think that's the root of the problem. I decided to go with highlight.js instead and was able to get that to work:
|
Beta Was this translation helpful? Give feedback.
I gave up -- it looks like prism strips HTML, and I think that's the root of the problem. I decided to go with highlight.js instead and was able to get that to work: