The Markdown component renders styled Markdown content within your script’s user interface. It supports different visual themes and syntax highlighter styles for displaying code blocks, making it ideal for rendering documentation, previews, or custom rich-text content.
content: string (required)The Markdown-formatted text to display. This should follow standard Markdown syntax.
theme?: 'basic' | 'github' | 'docC'Sets the visual theme for the Markdown content. Available options:
'basic': A simple, neutral theme.'github': GitHub-style styling (default for code-like docs).'docC': A theme inspired by Apple's DocC documentation style.highlighterTheme?: 'midnight' | 'presentation' | 'sundellsColors' | 'sunset' | 'wwdc17' | 'wwdc18'Specifies a syntax highlighting theme for code blocks within the Markdown content. If not set, no highlighting theme is applied by default.
Available options:
'midnight''presentation''sundellsColors''sunset''wwdc17''wwdc18'useDefaultHighlighterTheme?: booleanIf set to true, the Markdown view will automatically use the default highlighter theme based on the system’s color scheme (light or dark).
⚠️ This has no effect if
highlighterThemeis explicitly set.
scrollable?: booleanDefault: true
Controls whether the Markdown view is scrollable. Set to false to embed static Markdown content in a fixed area (e.g. inside a scrollable parent container).