Skip to content

Fenced Divs

To style a region of markdown without introducing a named shortcode, use a bare ::: fence with a {.class} attribute block. Full markdown renders inside: headings, lists, images, links, and nested shortcodes all work normally.

Basic fenced div

::: {.tagline}
Civic engagement through community-centered performance.
:::

Civic engagement through community-centered performance.

This renders as:

<div class="tagline">
  <p>Civic engagement through community-centered performance.</p>
</div>

Multiple classes

::: {.hero .narrow}
## Our story

Founded in 2018, we make theatre that listens.
:::

Our story

Founded in 2018, we make theatre that listens.

Use named-class fenced divs instead of <div class="…"> HTML wrappers. The class lives in .moss/theme/style.css; the markdown stays readable. A bare ::: with no attribute block is not a shortcode: it closes the innermost open block, and when nothing is open it stays literal text in the output and the build warns about it.

Full-width bands

A width word in the attribute block (wide, page or screen; full is the same as screen) widens the div the way it widens an image or a grid. The div's own children stay at the reading width, centred, so text inside a full-width band does not run edge to edge. The theme paints the band; moss adds no colour.

:::{.band screen}
A statement that sits on a full-width background.
:::
.band { background: #f3ead8; padding-block: 2rem; }

On a phone the band is the width of the text column. Everything directly inside a band is held to the reading width and centred, so a wide grid or a full-width picture nested in a band is not widened. A band must be a direct child of the page text to widen, not inside another block.