Quoin
View Repository ↗Quoin is a specialized document utility designed to bridge the gap between lightweight markup and professional-grade typesetting. Unlike conventional Markdown-to-PDF converters that rely on headless browser engines for HTML-to-PDF rendering, Quoin utilizes Pandoc for sophisticated AST manipulation and Typst as its primary layout engine.
Core Architecture
The system is implemented in Rust, providing a robust CLI for document transformation. A key feature is the integration of a web interface embedded directly into the binary, facilitating real-time live previews without external dependencies. This approach ensures a self-contained, high-performance environment for document authorship.
Integration & Deployment
- Tool Wrapper Strategy: Orchestrates Pandoc for parsing and Typst for typesetting, exposing advanced layout controls through a unified interface.
- CI/CD & Containerization: Features a streamlined GitHub Actions pipeline for automated builds and deployment. The official Docker image is optimized for minimal footprint, packaging the entire toolchain including the embedded web server.
- Typesetting Logic: Supports LaTeX-style typography (New Computer Modern), multi-column layouts, and precise margin control, diverging from the limitations of CSS-based print media.