Supporting material showcased in isolation — figures, tables, diagrams, and framed boxes.
<caption>Compiles to eHTML <caption>.
<diagram>Compiles to eHTML <diagram>.
<diagram mermaid>
graph LR
A[Start] --> B{Decision}
B -->|yes| C[OK]
B -->|no| D[Stop]
</diagram>
graph LR
A[Start] --> B{Decision}
B -->|yes| C[OK]
B -->|no| D[Stop]
The mermaid format word selects the Mermaid engine. The handler
emits the same <pre class="mermaid" data-enscribe-dsl="mermaid">
contract as the legacy <mermaid> shorthand expands to.
<fig>Compiles to eHTML <fig>.
<fig src=elephant.jpg | An adult African elephant.>
An adult African elephant.
The simplest case. The src kwarg generates the <img>; the pipe content generates the figcaption. The alt text defaults to the figcaption text when not specified explicitly. The eHTML element is HTML-native <figure> (not the custom-element <fig>) because the HTML rendering surface is the HTML5 native element while the enscribe canonical name follows JATS’s shorter <fig>.
<frame>Compiles to eHTML <frame>.
<frame | A short callout.>
A short callout.
The simplest case. The handler emits a <figure> wrapper (the vocab
html_output.element frame is only the lookup key for handler-strategy
entries — the handler controls the actual element). +border is default on
for <frame>, so the class appears automatically.
<minipage>Compiles to eHTML <minipage>.
<minipage | Two panels side by side.>
Two panels side by side.
The simplest case. The handler emits a <figure> wrapper (the vocab
html_output.element minipage is only the lookup key for handler-strategy
entries — the handler controls the actual element). +border is default on
for <minipage>, so the class appears automatically. The body renders as
sealed eHTML.
<svg>Compiles to eHTML <svg>.
<svg -numbered viewBox="0 0 100 100" width=200 height=200 |
<circle cx="50" cy="50" r="40" fill="blue" />
>
A lone inline SVG. <svg> is numbered by default (it shares the
figure counter), so -numbered is what opts out of framing for a
purely inline graphic. The source is opaque pipe content; the
attributes pass through to the rendered <svg> element.
<table>Compiles to eHTML <table>.
| Name | Price |
|------|-------|
| foo | 1 |
| bar | 2 |
| Name | Price |
|---|---|
| foo | 1 |
| bar | 2 |
Plain markdown table syntax (via remark-gfm). The most common authoring path for simple tables. No explicit enscribe tags needed.