Tiramisu Docs

Writing

Markup Basics

Learn Tiramisu's function-call syntax for headings, inline formatting, links, and nested content.

Tiramisu uses a function-call syntax for all structured content. Plain text outside function calls becomes paragraph content.

Function Calls

The basic syntax is a function name followed by content in curly braces:

tiramisu
h1 { Hello World }

Functions can have parameters separated by commas:

tiramisu
link { url = https://example.com, Click here }

Paragraphs

Text outside function calls is rendered as paragraphs. Blank lines separate paragraphs:

tiramisu
This is the first paragraph.

This is the second paragraph.

Single line breaks within a paragraph are treated as spaces.

Inline Formatting

SyntaxResult
bold { text }text
italic { text }text
code { text }text

These can be nested: bold and italic.

tiramisu
bold { italic { bold and italic } }
tiramisu
link { url = https://example.com, Link text }

Renders as: Link text

External links (starting with http:// or https://) automatically open in a new tab and display a small external link icon.

Headings

Six levels of headings are available:

tiramisu
h1 { Heading 1 }
h2 { Heading 2 }
h3 { Heading 3 }
h4 { Heading 4 }
h5 { Heading 5 }
h6 { Heading 6 }

Headings automatically generate anchor IDs and appear in the table of contents.

Nesting

Function calls can be nested inside each other:

tiramisu
callout { type = info,
  Use bold { bold } to emphasize key points in your
  link { url = /docs, documentation }.
}
Preview