TypstDocumentation

read

Read plain text from a file.

The file will be read and returned as a string.

Example

#let text = read("data.html")

An example for a HTML file:\
#raw(text, lang: "html")
Preview

Parameters
Question mark

read() -> string

path
stringRequiredPositional
Question mark

Path to a file.