mapbox / rehype-prism

rehype plugin to highlight code blocks in HTML with Prism (via refractor)
MIT License
178 stars 24 forks source link

how to use multiple hightlight #27

Open ysuzuki19 opened 3 years ago

ysuzuki19 commented 3 years ago

thank you for develop great library, I use rehype-prism with Next.js in my blog.

By the way, can we use multiple hightlight likes language-diff-jsx (ref)? More specifically, I want to use language-diff-jsx diff-highlight.

I tried following methods but I cant.

  1. put language type in mdx jsx-diff: Error: Unknown language: jsx-diff is not registered diff-jsx: Error: Unknown language: diff-jsx is not registered
  2. replace component with language-jsx-diff: highlight only one language type specified in mdx

rehype-prism has methods of multiple highlight?

Thanks for reading!