Docs

Block attributes

Align or indent any block, or give it an anchor, with one line above it

A block attribute line sets a property of the block right below it:

Result

Cambridge: at the University Press

The sentence that continues after a display equation.

Markdown
{align=center}
Cambridge: at the University Press
 
{indent=none}
The sentence that continues after a display equation.
 
{align=left}
$$
\int_0^1 x\,dx = \tfrac12
$$

The line is {…} on its own, at the start of the line, directly above the block with no blank line in between. It works above a paragraph, a heading, a list, a table, a quote, a code block or display math. Above a directive it means the same as writing the attributes on the directive itself: :::epigraph{align=right}.

The attributes

AttributeValuesDoes
alignleft center right justifyhow the lines sit
indentnone first hangingno first-line indent, a forced one, or a hanging one
#nameletters, digits, - _an anchor you can link to: [see above](#name)

Several can go on one line: {#intro align=center}. On a directive they apply to everything inside it.

When it stays as text

If anything in the braces is not one of the attributes above, or the line is not directly above a block, it is shown exactly as you typed it. So a typo like {alig=center} is visible instead of silently doing nothing, and a line such as {x} in your prose is left alone.

Inside a list item or a quote, an attribute line is plain text.

The editor's alignment buttons write this line for you.