Concrete output format. "text" is lossy plain-text extraction,
"semantic-tokens" is parser-derived highlighting in the LSP shape (see
semanticTokens), "diagnostics" is every issue the JSON envelope
would carry as LSP diagnostics with encoded positions (see
diagnostics) and "lex" is the lexer's token stream as a JSON
array ([{ kind, span, text }], byte spans; debug tooling) — all four are
output-only (they cannot be used as an input format), and the last three
take bitmark input only. Any config mapping id ("html", "xml", …) is
accepted too.
Concrete output format.
"text"is lossy plain-text extraction,"semantic-tokens"is parser-derived highlighting in the LSP shape (see semanticTokens),"diagnostics"is every issue the JSON envelope would carry as LSP diagnostics with encoded positions (see diagnostics) and"lex"is the lexer's token stream as a JSON array ([{ kind, span, text }], byte spans; debug tooling) — all four are output-only (they cannot be used as an input format), and the last three take bitmark input only. Any config mapping id ("html","xml", …) is accepted too.