Markdown

The Markdown component can parse Markdown format text and render it as HTML, supporting custom styles and security filtering.

Usage Examples

Basic Usage

Rendering simple Markdown content.

300px

Markdown Editor and Preview

Combine with a textarea for live editing and preview functionality.

300px

Security Filtering

Prevents XSS attacks by enabling security filtering that removes dangerous HTML tags and attributes.

300px

Properties

PropertyBasic component module for translation keys shared across all component documentation pagesTypeDefault
contentMarkdown content to renderstring
sanitizeWhether to filter HTML content to prevent XSS attacksbooleantrue
breaksWhether to convert line breaks to br tagsbooleantrue
linkifyWhether to automatically convert URL text to linksbooleantrue
Design Empowers, Innovation Unlimited