Enscribe
Exhibit

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]
Figure 1.
Minipage 26.

The mermaid format word selects the Mermaid engine. The handler emits the same &lt;pre class="mermaid" data-enscribe-dsl="mermaid"&gt; contract as the legacy &lt;mermaid&gt; shorthand expands to.

<fig>

Compiles to eHTML <fig>.

<fig src=elephant.jpg | An adult African elephant.>
An adult African elephant.
Figure 1.

An adult African elephant.

Minipage 27.

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.

Figure 1.
Minipage 28.

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.

Minipage 1.
Minipage 29.

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" />
>
Minipage 30.

A lone inline SVG. &lt;svg&gt; 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     |
Table 1.
Name Price
foo 1
bar 2
Minipage 31.

Plain markdown table syntax (via remark-gfm). The most common authoring path for simple tables. No explicit enscribe tags needed.