Skip to main content

format_document

Function format_document 

Source
pub fn format_document(
    request: FormatDocumentRequest,
) -> Result<FormatDocumentResult, FormatDocumentError>
Expand description

Format a complete document’s citations and bibliography (convenience wrapper).

This function resolves the style locally using StyleInput::resolve_local. For styles requiring a resolver chain (Id or Uri), use format_document_with_style after pre-resolving.

§Errors

Returns an error if the style cannot be resolved, parsed, or if rendering fails.