typost demo
2026-02-14

A tour of Typst and typost

Every block below shows the source, then the actual result.


Headings

=== A section

A section

==== A subsection
A subsection

Emphasis and inline styles

*bold*, _italic_, `code`, #strike[struck], #underline[underlined],
#highlight[highlighted], #sub[sub], #super[super]

bold, italic, code, struck, underlined, highlighted, sub, super


Lists

- one
- two
  - nested

+ first
+ second

/ term: its description
  1. first
  2. second
term
its description

Code

```rust
fn main() {
    println!("hello from typost");
}
```
fn main() {
    println!("hello from typost");
}

Math

Euler's identity: $e^(i pi) + 1 = 0$.

Eulerโ€™s identity: ๐‘’๐‘–๐œ‹+1=0.

$ integral_0^infinity e^(-x^2) dif x = sqrt(pi) / 2 $
โˆซ0โˆž๐‘’โˆ’๐‘ฅ2d๐‘ฅ=๐œ‹2

Tables

#table(
  columns: 3,
  [*Feature*], [*Typst*], [*Markdown*],
  [Math], [yes], [partial],
  [Functions], [yes], [no],
)
FeatureTypstMarkdown
Mathyespartial
Functionsyesno

Quotes and footnotes

#quote(block: true)[
  Typst is a new markup-based typesetting system that is designed to be as
  powerful as LaTeX while being much easier to learn and use.
]

A footnote#footnote[At the bottom of the page.].
Typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use.

A footnote1.


typost extras

A spoiler hides an inline run until you hover it:

The butler did it #spoiler[with the candlestick, in the library].

The butler did it with the candlestick, in the library.

A block spoiler stays blurred until you click it, then stays revealed:

#spoiler(block: true)[
  This block stays blurred behind a "click to reveal" pill until you click it,
  and then it stays revealed.
]
click to reveal
This block stays blurred behind a โ€œclick to revealโ€ pill until you click it, and then it stays revealed.

A region can be encrypted at build time โ€” the plaintext never reaches the page:

#encrypted(password: "hunter2")[
  Only readers who know the password see this.
  The plaintext is not in the page source.
]

This part is encrypted. Enter the password to read it.

  1. 1At the bottom of the page.