Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

how to use multiple hightlight #27

Open
ysuzuki19 opened this issue Sep 12, 2021 · 0 comments
Open

how to use multiple hightlight #27

ysuzuki19 opened this issue Sep 12, 2021 · 0 comments

Comments

@ysuzuki19
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant