MasterStyles Reference Manual
This reference describes Markdown layout syntax supported by the content sanitizer and the MasterStyles conversion path. Preview the result for the current variable; conversion and export can fail if their input or theme CSS is unavailable.
Quick Reference
| Action | Syntax or place to check |
|---|---|
| MasterStyles view | Peek Drawer controls, where available |
| Sidebar | :::sidenotes block |
| One column | layout: one_col in frontmatter; inspect output |
| Card | :::card[Title] ... ::: |
| Callout | :::callout ... ::: |
| Grid | :::grid{cols=2} ... ::: |
| KPI block | :::kpi with :metric_val[] and :metric_lbl[] |
| Copy or download | Current variable's displayed controls |
Frontmatter (Recommended)
---
title: "Executive Summary"
subtitle: "Market signal review"
doc_type: "Document"
hero_tag: "Strategy"
date: "2026-01-19"
layout: two_col
---
A body heading and complete frontmatter make the output easier to inspect. Presentation varies with content and renderer.
Supported Tags (Cheat Sheet)
The sanitizer recognizes sidenotes, sidebar, aside, grid, card, callout, lead, timeline, timeline-item, kpi, note, tip, warning, danger, and info as block directives. The examples below are authoring syntax, not a rendering guarantee.
Sidebar
:::sidenotes
### Notes
- Sidebar item
:::
Admonitions
:::note
Baseline context
:::
:::tip
A practical tip
:::
:::warning
A caution
:::
:::danger
A critical warning
:::
Layout Blocks
:::card[Title]
Card content
:::
:::grid{cols=2}
:::card[One]
...
:::
:::card[Two]
...
:::
:::
Timeline
:::timeline
:::timeline-item{title="Impact" tone="gold"}
Lagging result
:::
:::timeline-item{title="Outcome" tone="tip"}
Leading result
:::
:::
KPIs
:::kpi
:metric_val[64%]
:metric_lbl[Return]
:::
Inline Badges
Priority: :badge[HIGH]
Risk: :tag[MED]
Rendering Notes
Close every block with :::. Unknown or malformed directives may be removed or repaired by the display sanitizer. Check the original Markdown if a styled element is missing. MasterStyles conversion raises an error when CSS, source HTML/Markdown, or converted HTML is unavailable; use the original view until conversion succeeds.