jGleitz / markdown-it-prism

Highlight code blocks in markdown-it using prism
MIT License
84 stars 22 forks source link

If i add languages, everything stop working. #815

Open onigetoc opened 1 year ago

onigetoc commented 1 year ago

I do not know if there's compatibility bugs.

i do a king of chatGPT bot and after adding makdown-it-prism, it will work for javascritp and html. if i try to add languages, it break the code and my chat bubble disappear.

import "prismjs/components/prism-clike"
import "prismjs/components/prism-java"

It's like, it will install prism.js or there's some incompatibility, i don't know.

I have to uninstall prismjs and comment these languages imports to make it work again.

P.S. I also use Svelte to render the @html and until i do not import code languages it work.