Tiramisu Docs

Language

A markup language built around function calls that compiles to any output format.

Tiramisu is a markup language built around function calls. It produces a generic AST that can be compiled to any output format — HTML, Svelte, React, PDF, and more.

Quick Look

Everything in Tiramisu is either plain text or a function call:

tiramisu
h2 { Hello World }

This is plain text. Use bold { function calls } to add structure.

list {
  Simple and readable,
  No closing tags,
  Compiles to anything
}

Functions can take named parameters, positional parameters, or both. They nest naturally — any parameter value can contain other function calls.

Design Principles

Functions All The Way Down One concept to learn. Headings, lists, tables, code blocks — everything is a function call.
Output Agnostic The parser produces a generic AST. Write a compiler for HTML, Svelte, React, PDF, or any format you need.
Readable by Default No angle brackets, no closing tags. Tiramisu reads like structured prose.
Extensible Unknown function names become custom components. Add your own without touching the parser.

Learn