Skip to content

How to use rehype-highlight in ReactMarkdown? #69

Discussion options

You must be logged in to vote

@dominicarrojado what versions of each library are you using?
Trying out an example in codesandbox https://codesandbox.io/s/react-markdown-rehype-highlight-32obr?file=/src/App.js
With

appears to work as expected https://codesandbox.io/s/react-markdown-rehype-highlight-32obr?file=/src/App.js.


For Next.js have you enabled ESM support? https://nextjs.org/blog/next-11-1#es-modules-support
And what versions of libraries are you using?


For CRA what version of libraries are you using? Have you customized the browserslist by any chance?

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@dominicarrojado
Comment options

@ChristianMurphy
Comment options

@dominicarrojado
Comment options

@ChristianMurphy
Comment options

@dominicarrojado
Comment options

Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
🏗 area/tools This affects tooling
2 participants