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

how to use multiple hightlight #27

@ysuzuki19

Description

@ysuzuki19

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions