Syntax Reference

This page provides a quick reference for all Zolt syntax patterns.

Text Formatting & Layout

Zolt SyntaxResult
**bold**bold
//italic//*italic*
__underline__underline
~~strikethrough~~strikethrough
^{superscript}superscript
_{subscript}subscript
==highlight==highlight
%% comment %%(Hidden comment)
---, ***, ___Horizontal Rule

Headings & Structure

zolt
# Heading 1
## Heading 2 {#custom-id}
### Heading 3 {color=red}
#### Heading 4 {numbered}
##### Heading 5 {noToc}
###### Heading 6 {noCount}

Lists

TypeSyntaxDescription
Bullet- ItemStandard bullet
Numbered1. ItemAuto-incrementing
Task[ ] Task[x] for completed
Definition: Termfollowed by definition
Plain+ ItemNo visual marker
Nested - Sub-item2 spaces or 1 tab

Media Prefixes

PrefixTypeSyntax
!Image![alt](image.jpg)
!!Video!![alt](video.mp4)
??Audio??[alt](audio.mp3)
&&File&&[alt](file.pdf)

Code

Inline

`inline code`

Blocks

zolt
```language {title="file.ext" highlight="1,3-5" start=10}
code block
```

Tables

zolt
[[table id=my-table]]
| Header 1 | Header 2 | Header 3 |
| :---     | :---:    | ---:     |
| [h] RowH | Cell     | Cell     |
| [colspan=2] Merged  | Cell     |
| [rowspan=2] Vertical| Row 1    |
|                      Row 2    |
[[/table]]

Semantic Blocks (:::)

TypeSyntax / Example
Callouts:::info, :::warning, :::error, :::success, :::note
Accordions:::details [Title]
Tabs:::tabs containing :::tab [Title]
Columns:::columns containing :::column
Comment:::comment

Citations & Indentation

TypeSyntaxDescription
Citation> textSemantic blockquote
Indentation& textVisual nesting (&&, &&&)

Math & Diagrams

Math (LaTeX)

Diagrams (Mermaid)

zolt
:::mermaid
graph TD; A-->B;
:::

Native Charts

zolt
:::chart
:::chart-line {title="Data"}
Key: Value
:::
:::

(Types: chart-line , chart-bar , chart-pie , chart-area )

Variables & Data

TypeSyntax
Define$var = "value"
Global$$globalVar = "value"
Usage{$var}
Array$arr = [1, 2] -> {$arr[0]}
Object$obj = {p: "v"} -> {$obj.p}

Expressions & Logic

Calculations

{{ 10 + 5 * 2 }}

Control Flow

zolt
:::if {$cond}
...
:::elseif {$cond}
...
:::else
...
:::

:::foreach {$items as $item}
...
:::

Logic

Namespaces

Available built-in functions:

NamespaceFunctions
Mathfloor(n), ceil(n), round(n), abs(n), pow(b,e), sqrt(n), min(...n), max(...n)
Stringupper(s), lower(s), length(s), trim(s), replace(s,f,r), split(s,sep), join(l,sep)
Listlength(l), count(l), first(l), last(l), sum(l), avg(l), min(l), max(l)
DatebuildTime(), format(d,f), parse(s,f?), calc(d,dur), diff(d1,d2,u?), timestamp(d?)

Example: {{ Math.round($n) }} , {{ String.upper($name) }}

Metadata & Layouts

ComponentSyntaxDescription
Table of Contents[[toc]]Page-level TOC
File Tree[[filetree]]Project-wide navigation
Nav Links[[filetree-nav]]Prev/Next page links

Footnotes & Abbreviations

Escape Characters

SyntaxResultSyntaxResult
\[[\**
\{{\\\
\||\$$

© 2026 Marmotz