pub fn format_document_with_resolver(
request: FormatDocumentRequest,
resolver: &StyleResolver,
) -> Result<FormatDocumentResult, FormatDocumentError>Expand description
Format a document, resolving the style through an injected resolver.
Yaml is parsed inline; Id, Uri, and Path are delegated to
resolver.resolve_style. This lets WASM/FFI callers supply their own
resolver chain without pre-resolving the style themselves.
ยงErrors
Returns an error if the resolver fails, the style cannot be parsed, or if rendering fails.