Layout Module Catalog
The 56-name advanced layout catalog across 9 categories, and how to discover it.
Layout Module Catalog
Counts contract
- 56 recommended syntax names
- 77 recommended scenario entries
- 9 categories
- 9 body formats
- 63 render-layer syntax capabilities in total (56 recommended + 3 compatibility modules + 4 base enhancements)
Nine categories
| Category | Representative modules |
|---|---|
| opening | hero, toc, cards, label-title, part, section-title, epilogue, closing |
| infographic | metrics, steps, timeline, compare, infographic |
| judgment | verdict, manifesto, myth-fact, audience-fit, bridge |
| evidence | quote, image-text, image-compare, image-annotate, image-steps, gallery-grid, gallery-story, figure-caption |
| conversion | cta, faq, checklist, pricing, cases, specs, summary, toolbox, notice, logos |
| brand | author-card, people, series, subscribe |
| sprint4 | callout, changelog, comparison-table, definition, question, quote-card, resource-list, stat-row, tweet |
| free-layout | split, flow, matrix, dialogue-pair |
| interactive | svg-reveal, svg-swipe-gallery |
Compatibility modules (dialogue, gallery, longimage) exist for migration only. Base enhancements (highlight-text, katex, mermaid, gfm-alert) render in normal Markdown without module syntax.
Body formats
| Format | Modules | Shape |
|---|---|---|
fields | 21 | `Key |
rows | 16 | table-like rows with a header |
json_object | 5 | JSON object body |
json_array | 2 | JSON array body |
markdown_images | 6 | Markdown image list |
markdown_fields | 3 | Markdown with field lines |
split | 1 | left/right split |
lines | 1 | plain lines |
dialogue | 4 | speaker lines |
Discover from the CLI
md2wechat layout list --category opening
md2wechat layout show hero
md2wechat layout render hero --var TITLE="First screen"
md2wechat layout validate --file article.md
md2wechat capabilities --jsonlayout list filters by --category, --serves, --content-type, --industry, --tag, and --lifecycle recommended|compatibility.
Catalog is the single source
Since 3.0, the embedded catalog is the single source of truth: user layout YAML overrides were removed, unknown fields and variables fail closed, and layout validate checks local schema only. Real rendering is proven by convert/preview through the API. Module syntax renders in API mode; in AI mode :::module blocks are treated as plain paragraphs.