MarkdownBlock
Description
Renders Markdown text as sanitized HTML. The component uses the bundled marked and DOMPurify libraries (via the Markdown helper) so untrusted input is safe to display.
Usage
API reference
public class MarkdownBlock : ComponentBase<MarkdownBlock, HTMLElement>, ICanWrapA component that renders Markdown text as sanitized HTML. Uses the bundled and libraries via .
Constructors
Properties
public string Text { get ; set ; }Gets or sets the Markdown source text. Setting this re-renders the sanitized HTML.