markdown element¶
Markdown content, rendered to HTML at build time.
Fields¶
| Field | Type | Default | Description |
|---|---|---|---|
markdown |
string | required | Markdown content, rendered to HTML at build time. Authored inline or via markdown_file: "path/to/content.md" (the file form reads the file at parse time). |
markdown_file |
path (optional) | null |
Path to a file whose text becomes markdown, relative to the slide source file (e.g. "content.md"). Read and inlined at parse time. Author exactly one of markdown / markdown_file; validated slides always carry markdown. |
color |
string | "inherit" |
CSS color value for the rendered text. Default 'inherit' picks up the slide-level body color. |
text_align |
"left" | "center" | "right" | "left" |
Horizontal text alignment within the element box. |
Every element also shares the common fields — position, size, anchor, opacity, scale, and angle.
Example¶
{
// A text block, 80% wide, inset from the top-left.
// Multi-line content uses JSON5 line continuations (\ at end of line)
// so the markdown stays readable in source.
markdown: "## Section title\n\
\n\
Body copy with **bold** and _italic_.",
position: [10, 10],
width: 80,
}