Version: v0.14.0

Source formats

Writing and reading a whole document as Markdown (LaTeX math) or Typst source, losslessly, and the canonical form both start from.

OperationKindBindingsSummary
canonicalize_documentfunctionJulia, TypeScript, Python, Rust, GoThe document-level canonical step: every units string of a decoded document (the JSON object to_json writes and load_document reads, e.g. from JSON3.read) takes the…
parse_documentfunctionJulia, TypeScript, Python, Rust, GoRead an ESM document written in the source format format: :markdown (parse_markdown) or :typst (parse_typst).
parse_markdownfunctionJulia, TypeScript, Python, Rust, GoRead a Markdown ESM document (Lean Source.Md.parseMd).
parse_typstfunctionJulia, TypeScript, Python, Rust, GoRead a Typst ESM document (Lean Source.Typ.parseTyp).
print_documentfunctionJulia, TypeScript, Python, Rust, GoPrint an ESM document in the source format format: :markdown (print_markdown) or :typst (print_typst).
print_markdownfunctionJulia, TypeScript, Python, Rust, GoPrint an ESM document as Markdown: YAML front matter, LaTeX math in $$ displays, remark directives for components, declarations and reactions, and fenced esm: blocks for…
print_typstfunctionJulia, TypeScript, Python, Rust, GoPrint an ESM document as Typst (Lean Source.Typ.printTyp): the esm Typst package’s esm-document header, Typst math displays and the package’s functions for components,…

All topics