Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Documentation

Asgard

Getting started

Theming

Guides

Layout

Docking

Inputs & forms

Button

Switch

Checkbox

Radio

Select

Slider

TextBox

Upload

ImageCropper

Pickers

Color picker

Calendar

Time picker

DateTime input

Data display

Card

Accordion

Typography

Progress

DataTable

TreeView

SyntaxColor

MarkdownRenderer

Terminal

Layout & docking

Grid

Splitter

SDiv

Dock

Theme switcher

Media query

Feedback & overlays

Alert

Toast

Tooltip

Popups

Drawer

FloatingPanel

FloatingWindow

Navigation & chrome

Breadcrumb

Stepper

Toolbar

Ribbon

ContextMenu

FeatureTour

Data display

Render markdown as themed elements.

Converts markdown text into themed elements, with syntax-highlighted code blocks.

Key features:

  • Headings, paragraphs, blockquotes, lists, tables and rules
  • Fenced code blocks highlighted via SyntaxColor
  • Rich inline: bold, italic, code, links and images
  • Three sizes and a custom onLinkClick handler for client-side nav
Loading preview…
When to use it
  • Docs, changelogs and READMEs
  • User-authored content (comments, posts)
  • In-app help and release notes
Properties
PropTypeDefaultDescription
markdownstringMarkdown source text to render.
size'small' | 'normal' | 'large''normal'Base font size for the rendered output.
syntaxHighlightbooleantrueRender fenced code blocks with SyntaxColor highlighting.
codeColorMapRecord<string, string>Override token colors for code blocks (merged over the theme defaults).
onLinkClick(href: string) => voidIntercept link clicks (prevents default navigation), useful for SPA routing.
classNamestringClass applied to the root element.
styleCSSPropertiesInline style for the root element.
Notes
  • Language identifiers on fenced blocks (tsx, ts, js, json, css, html, python) map to built-in Monarch languages.
  • Provide onLinkClick to route links through your client-side router instead of a full page load.
Presets