Markdown

Compiles and renders a string of markdown content.

API Reference

MarkdownComponents

MarkdownProps

MarkdownProps
Properties

children *

string

The markdown content to render.

components

MarkdownComponents

Components to override the HTML compiled from markdown syntax.

remarkPlugins

PluggableList

Remark plugins to use. See PluggableList for more info.

rehypePlugins

PluggableList

Rehype plugins to use. See PluggableList for more info.

Markdown

({ children, components, remarkPlugins, rehypePlugins, }: MarkdownProps) => Promise<JSX.Element>

Compiles and renders a string of markdown content.

Parameters
MarkdownProps
Returns
Promise<JSX.Element>