Content
Markdown
Gives rendered Markdown Mizen's reading layout and element styling, with any parser.
Usage
Examples
Markdown
Recommendations
| Guidance | Practice |
|---|---|
| Do | Render the document inside Markdown with markdownComponents, for example through react-markdown with remark-gfm and skipHtml. |
| Do | Give each document an id and pass it as the parser's footnote prefix. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Mizen ships no parser. The app owns parsing, plugins, raw HTML policy, and URL sanitizing for untrusted content. |
| Scope | Footnote labels share one ID across documents on a page; this is a remark-rehype limitation. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | Required | The rendered document, usually a react-markdown or MDX tree that uses markdownComponents. |
| | None | Anchors the document; pass the same value as the parser's footnote prefix. |
| | Static | Maps headings, lists, links, code, task lists, and tables to Mizen elements for any renderer with a components prop. |
| | None | The app chooses the parser and plugins, skips raw HTML, and keeps URL sanitizing; Mizen ships no parser. |