Expand description
§Typst Backend for Quillmark
This crate provides a complete Typst backend implementation that converts Markdown documents to PDF and SVG formats via the Typst typesetting system.
§Overview
The primary entry point is the TypstBackend struct, which implements the
Backend trait from quillmark-core. Users typically interact with this backend
through the high-level Quill API from the quillmark crate.
§Features
- Converts CommonMark Markdown to Typst markup
- Compiles Typst documents to PDF and SVG formats
- Provides template filters for YAML data transformation
- Manages fonts, assets, and packages dynamically
- Embeds unsigned AcroForm signature widgets via the
signature-fieldhelper (seesignature-fieldin thelib.typhelper package; only the PDF output carries the widget — SVG and PNG render an invisible placeholder) - Thread-safe for concurrent rendering
§Modules
Note: The error_mapping module provides internal utilities for converting Typst
diagnostics to Quillmark diagnostics and is not part of the public API.
Modules§
Structs§
- Typst
Backend - Typst backend implementation for Quillmark.
- Typst
Session - Typst-specific render session.
Functions§
- typst_
session_ of - Borrow the
TypstSessionunderlying aRenderSession, if the session was opened by the Typst backend.