Typst
Learn how Vale handles Typst content.
Requires Vale v3.18.0 or later.
Typst is supported through the external program typst2vast, which reads documents with typst-syntax—the Typst compiler's own parser—without ever evaluating them. To get started, install the CLI:
$ cargo install typst2vastYou'll need to ensure that the typst2vast executable is available in your $PATH (this should happen automatically).
The supported extension is .typ.
Because nothing is compiled, a document that doesn't build still lints, no package is ever fetched, and no #show rule can move an alert off its source text.
By default, Vale ignores:
Code mode:
#expressions and#let,#set,#show, and#importstatements.Raw text: inline
`spans`and fenced blocks.Math:
$x^2$and display equations.Comments:
//and/* ... */, nesting included.Labels (
<my-label>) and references (@my-label).
Everything else is prose in its scope: = headings are heading, *strong* and _emphasis_ are strong and emphasis, raw spans are code, and list, numbered, and term items are list.
Content blocks
A [content] block anywhere inside code mode is prose, and Vale lints it—a figure's caption, a conditional's branches, a #let-bound body:
Last updated
