Skip to content

CodeBlock render code without theme #867

Answered by fuma-nama
Ali-Hussein-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm guess you misunderstood what the component does. It styles the output of Rehype Code (our tiny wrapper over Shiki), and you are supposed to use it with Markdown/MDX.

Your usage requires syntax highlighting with Shiki and render the Hast tree with code block component.

I would suggest you to take a look at our source code of landing page, or see Shiki's Next.js integration guide (as I wrote it, I can confirm it's correct)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Ali-Hussein-dev
Comment options

@fuma-nama
Comment options

Answer selected by Ali-Hussein-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants