Markdown

Render Markdown

Use this component to render markdown content client-side. It wraps rendered HTML in the <BaseProse> component, aplpying the Tailwind CSS prose class from the typography plugin.

This component uses remark and rehype to parse and render the markdown content.
Show code
source
Markdown source
Required
Show example
size
Prose size modifier
Show example
mode
Show example
themes
Theme to use to highlight code blocks
Show example
langs
List of languages to highlight code blocks
Show example
lines
Show line numbers
Show example
fullwidth
Don't wrap content in default tailwind prose size
Show example