Registry / utility / typst-syntax

typst-syntax

JSON →
library0.14.2rscratesunverified

Parser and syntax tree for the Typst document markup language.

# Cargo.toml [dependencies] typst-syntax = "0.14.2"
INSTALL
IMPORT
SIG · TYPST-SYNTAX
T
typst-syntax
utilityrustv0.14.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SyntaxNode
use typst_syntax::SyntaxNode;

Minimal example parsing Typst source into a syntax tree.

use typst_syntax::SyntaxNode; fn main() { // Example: parse a simple Typst expression let source = "Hello $x$"; let node = SyntaxNode::parse(source); println!("Parsed: {:?}", node); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.14.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
typst-syntax — cargo add typst-syntax · libregistry