Markdown
ui.widgets.MarkdownRenders a supported Markdown subset as native nodes.
BEHAVIOR CONTRACT
Headings, emphasis, inline code, lists and quotes become real layout text nodes.
RECORDED INTERACTION
Shows headings, bold, italic, lists and quotes.
// ── Markdown ──
pub fn buildMarkdown(scope: *ui.Scope, cx: *ui.Cx) anyerror!*ui.Node {
_ = scope;
const md =
\\# Markdown
\\
\\Supports **bold**, *italic*, and `inline code`.
\\
\\- bullet one
\\- bullet two
\\
\\> A blockquote line.
;
const res = try W.Markdown(md, .{ .base_font_size = 13 }).render(cx);
return res.root;
}The story's verbatim source from the Storybook (zenit 4c50245 2026-10-01). W is ui.widgets; col / row / label are small Storybook layout helpers.
MarkdownBuilder
ui.widgets.Markdownmount returns MarkdownBuilder directly. Append it to a parent.