Version: dev

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

print_document

Stable function · Other

Tier: stable · Kind: function · Topic: Other

JuliaTypeScriptPythonRustGo
print_documentprintDocumentprint_documentprint_documentPrintDocument

Julia

print_document(doc::AbstractDict, format::Symbol)
print_document(doc::AbstractDict, format::Symbol) -> String

Print an ESM document in the source format format: :markdown (print_markdown ) or :typst (print_typst ).

Source

TypeScript

function printDocument(doc: object, format: DocumentFormat): string

Print an ESM document in the given format.

Source

Python

print_document(doc: dict, format: DocumentFormat | str) -> str

Print an ESM document in the given format ("markdown" or "typst").

Source

Rust

pub fn print_document(doc: &Map<String, Value>, format: DocumentFormat) -> String

Print an ESM document in the given format.

Source · Rust docs

Go

func PrintDocument(doc any, format DocumentFormat) string

PrintDocument prints an ESM document in the given format.

Source · Go docs