Markdown Renderer

The Markdown Renderer component allows rendering Markdown content safely with support for various customizations.

Usage

Default

<MarkdownRenderer content={`
# Markdown Test

- Item 1
- Item 2
- [Visit BorealUI](https://www.borealui.ca)
- `Inline code`

> Blockquote
`} />

Props

Data table
TypeDescription
aria-describedbystringID of an element that describes the markdown region.
aria-labelstringAccessible label for the markdown region. Use this when there is no visible heading associated with the content.
aria-labelledbystringID of an element that labels the markdown region. Prefer this when a visible heading already exists.
classNamestringOptional additional class name for styling.
contentstringRaw markdown content to be rendered as HTML.
data-testidstringOptional test ID for testing frameworks.
languagestringLanguage of the rendered markdown content.
roleReact.AriaRoleOptional ARIA role for the wrapper element. Defaults to "region".
roundingRoundingTypeOptional rounding style for the rendered container. One of: "none" | "small" | "medium" | "large" | "full"
shadowShadowTypeOptional shadow styling for the rendered container. One of: "none" | "light" | "medium" | "strong" | "intense"
tabIndexnumberOptional tab index for keyboard focus management.