Skip to content
Margo dev

Fenced types

#

Margo keeps specialized Markdown blocks explicit. Each page documents the fence's source syntax and shows the resulting projection.

Built-in and optional fences

  • Mermaid — diagrams rendered as sanitized SVG.
  • Math and LaTeX — inline expressions and display equations, including math fences, enabled with --math.
  • Goshtoso charts — static SVG charts with accessible data.
  • JSON Schema — versioned schema trees in documentation.
  • Code blocks — highlighted source with copy controls.

Fences are parsed during compilation. Enable core math with --math or margo.WithMath(true); register extension fences with the host. A target can reject a fence when its projection is unsupported.