MarkdownView Markdown
Markdown renderer with explicit sanitization and theme modes.
MarkdownView Markdown
TxMarkdownView renders GitHub-flavored Markdown through marked. Sanitization is enabled by default and the component withholds generated HTML until DOMPurify is ready; set sanitize=false only for trusted content.
Basic Usage
MarkdownView
Demo will load when visible.
Render Examples
Common Markdown Structures
Demo will load when visible.
Theme Preview
Light / Dark
Demo will load when visible.
API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
content | string | - | Markdown source rendered into the .markdown-body container. |
sanitize | boolean | true | Sanitizes generated HTML with DOMPurify before rendering; when disabled, raw HTML from Markdown is allowed. |
theme | 'auto' | 'light' | 'dark' | 'auto' | auto follows document data-theme / theme classes and falls back to light. |