← Contents
A mermaid fence is drawn as a Mermaid diagram:
a flowchart, a sequence, a state machine, a timeline and so on. While you
type, the diagram keeps its last good drawing until the text reads again,
and says under it what’s wrong. In a file opened anywhere else, the fence
is still its source. On a dark page, in the Dark theme or on a
dark background, it’s drawn in Mermaid’s dark theme.
A screen reader hears the diagram as an image, named by an accTitle: line
if it has one (accTitle: How a post is published), and then its source.
```mermaid
flowchart LR
draft --> review --> publish
review -->|changes| draft
```
flowchart LR
draft --> review --> publish
review -->|changes| draft
A headline fence is set like a clipping from the paper it ran in: the
paper’s name, the headline, and who wrote it and when.
```headline
City Library Will Stay Open Until Midnight, "For the Night Owls"
The board says the late hours are a trial through spring.
agency: The New York Times
by: A. Reporter
date: October 3, 2026
url: https://www.nytimes.com/2026/10/03/the-story.html
```
The New York Times
City Library Will Stay Open Until Midnight, “For the Night Owls”
The board says the late hours are a trial through spring.
By A. Reporter · October 3, 2026
agency:, by:, date: and url: lines, anywhere in the fence, say
the rest; all are optional. The headline links to the url.agency: or, without one, by where
the url: points. Any other paper gets a plain clipping.A number fence is a figure worth a box of its own: the number, big, and
a line under it saying what it counts.
```number
[15%]{seagreen}
daily code change
```
15%
daily code change
[15%]{seagreen} colors the number.::: columns block; the boxes come out the same size.An image alone in its paragraph is a figure, with a caption: its title if
it has one, otherwise its alt text. Its size goes after its address as
=WxH, in pixels, as in the markdown-it-imsize convention. Leave one side
out to keep the image’s proportions: =100x sets only the width, =x200
only the height. A title still goes before it.

First in a ::: row, beside its text, an image is just the image, with no
caption (see Row in Layout).