Version: dev

This is the documentation for the development version. For the latest release, see v0.13.0.

parse_document

Stable function · Other

Tier: stable · Kind: function · Topic: Other

JuliaTypeScriptPythonRustGo
parse_documentparseDocumentparse_documentparse_documentParseDocument

Julia

parse_document(text::AbstractString, format::Symbol)
parse_document(text::AbstractString, format::Symbol) -> OrderedDict{String, Any}

Read an ESM document written in the source format format: :markdown (parse_markdown ) or :typst (parse_typst ).

Source

TypeScript

function parseDocument(text: string, format: DocumentFormat, options?: ParseDocumentOptions): Record<string, unknown>

Read an ESM document written in the given format. See parseMarkdown .

Source

Python

parse_document(text: str, format: DocumentFormat | str) -> dict

Read an ESM document written in the given format ("markdown" or "typst"). See parse_markdown .

Source

Rust

pub fn parse_document(text: &str, format: DocumentFormat) -> Result<Value, DiagnosticError>

Read an ESM document written in the given format.

Errors

As parse_markdown .

Source · Rust docs

Go

func ParseDocument(text string, format DocumentFormat) (any, error)

ParseDocument reads an ESM document written in the given format. See ParseMarkdown.

Source · Go docs