| Crates.io | quillmark-typst |
| lib.rs | quillmark-typst |
| version | 0.32.1 |
| created_at | 2025-10-04 15:09:09.428937+00 |
| updated_at | 2026-01-24 16:43:43.044427+00 |
| description | Typst backend for Quillmark |
| homepage | https://github.com/nibsbin/quillmark |
| repository | https://github.com/nibsbin/quillmark |
| max_upload_size | |
| id | 1867986 |
| size | 238,880 |
A template-first Markdown rendering system that converts Markdown with YAML frontmatter into PDF, SVG, and other output formats.
Maintained by tonguetoquill.com.
UNDER DEVELOPMENT
MAJOR.MINOR) for reproducible rendering with flexible version selectorsAdd Quillmark to your Cargo.toml:
cargo add quillmark
use quillmark::{Quillmark, OutputFormat, ParsedDocument};
use quillmark_core::Quill;
// Create engine with Typst backend
let mut engine = Quillmark::new();
// Load a quill template
let quill = Quill::from_path("path/to/quill")?;
engine.register_quill(quill);
// Parse markdown with version specification
let markdown = "---\nQUILL: resume_template@2.1\ntitle: Example\n---\n\n# Hello World";
let parsed = ParsedDocument::from_markdown(markdown)?;
// Load workflow (resolves version from document)
let workflow = engine.workflow(&parsed)?;
// Or specify version directly: engine.workflow("resume_template@2")?;
let result = workflow.render(&parsed, Some(OutputFormat::Pdf))?;
// Access the generated PDF
let pdf_bytes = &result.artifacts[0].bytes;
Quillmark supports two-segment versioning for templates, enabling reproducible rendering:
---
QUILL: "template@2.1" # Pin to exact version
QUILL: "template@2" # Latest 2.x version
QUILL: "template@latest" # Latest overall
QUILL: "template" # Latest overall (default)
---
Templates specify versions in Quill.yaml:
Quill:
name: resume_template
version: "2.1"
backend: typst
Multiple versions of the same template can coexist in the engine. See VERSIONING.md for details.
Run the included examples:
cargo run --example appreciated_letter
cargo run --example usaf_memo
cargo run --example taro
cargo run --example usaf_form_8
cargo run --example auto_plate
cargo run --example test_defaults
This workspace contains:
Licensed under the Apache License, Version 2.0. See LICENSE for details.