TypstDocumentation

eval

Evaluate a string as Typst markup.

You shouldn't typically need this function, but it is there if you do.

Example

#let markup = "= Heading\n _Emphasis_"
#eval(markup)
Preview

Parameters
Question mark

eval() -> content

source
stringRequiredPositional
Question mark

A string of Typst markup to evaluate.

The markup and code in the string cannot interact with the file system.