Skip to content

Commit

Permalink
typst blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Sep 22, 2023
1 parent 26a2f03 commit 21adaaf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/prerelease/1.4/typst.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,28 @@ bibliographystyle: chicago-author-date

See the section below on [Custom Formats](#custom-formats) for details on creating your own specialized formats for use with Typst.

## Format support

### `#block()`

Fenced divs with the `block` class are compiled into `#block()` function calls:

```` markdown
::: {.block fill="luma(230)" inset="8pt" radius="4pt"}

This is a block with gray background and #emph[slightly] rounded corners.

:::
````

This gets compiled to

```` default
#block(fill:luma(230), inset=8pt, radius=4pt,
[This is a block with gray background and slightly rounded corners])

````

## Raw Blocks

If you want to use raw `typst` markup, use a raw `typst` block. For example:
Expand Down

0 comments on commit 21adaaf

Please sign in to comment.