Cratly Editor
Zu Deutsch wechselnDE

Container Blocks

Container blocks let you wrap Markdown content in fenced sections that a static site generator can render as custom HTML elements — callouts, tabs, cards, or anything your theme defines.

Syntax

::: section
Content inside the container.
:::

The opening fence uses three or more colons. The word after the colons is the type — passed as a data attribute to the rendered HTML. An optional parameter follows the type:

::: callout warning
Be careful with this setting.
:::

Nesting

Containers can be nested. Cratly automatically picks a longer colon sequence for inner containers to avoid ambiguity:

:::: card
::: callout info
This is a note inside a card.
:::
Content after the callout.
::::

In the Editor

Use the Wrap toolbar button to wrap the current selection in a new container. The Unwrap button removes the innermost container around the cursor, keeping its content intact.

The container type and optional parameter can be edited by clicking the label shown at the top of each container frame.

Editing Pages