Version: dev

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

document_format

Stable type · Other

Tier: stable · Kind: type · Topic: Other

JuliaTypeScriptPythonRustGo
not exportedDocumentFormatDocumentFormatDocumentFormatDocumentFormat

Julia

Julia does not export this type.

TypeScript

type DocumentFormat = 'markdown' | 'typst';

Which source format a document is written in.

Source

Python

class DocumentFormat(str, Enum)
DocumentFormat.MARKDOWN = 'markdown'
DocumentFormat.TYPST = 'typst'

Which source format a document is written in. A plain string ("markdown" / "typst") is accepted wherever a format is.

Source

Rust

pub enum DocumentFormat {
    Markdown,
    Typst,
}

Which source format a document is written in.

Source · Rust docs

Go

type DocumentFormat int
func (f DocumentFormat) String() string

DocumentFormat is a source format an ESM document can be written in.

Methods

func (f DocumentFormat) String() string

String names the format.

Source · Go docs