parse_document
Stable function · Other
Tier: stable · Kind: function · Topic: Other
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
parse_document | parseDocument | parse_document | parse_document | ParseDocument |
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
).
TypeScript
function parseDocument(text: string, format: DocumentFormat, options?: ParseDocumentOptions): Record<string, unknown>
Read an ESM document written in the given format. See parseMarkdown
.
Python
parse_document(text: str, format: DocumentFormat | str) -> dict
Read an ESM document written in the given format ("markdown" or
"typst"). See parse_markdown
.
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
.