- Remove Text.Pandoc.PDF dependency and dummy Pandoc document - Add direct xelatex invocation with temporary file handling - Improve error reporting with LaTeX log file parsing - Add temporary package dependency for proper temp file cleanup - Maintain same external API while cleaning internal architecture - Eliminate architectural mismatch between our pipeline and Pandoc's expectations The previous code used makePDF in a way that fought against its intended usage, requiring a dummy Pandoc document. Now we directly call xelatex after our custom LaTeX template processing, creating a cleaner separation of concerns. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Docster
A self-contained CLI tool that converts Markdown with Mermaid diagrams into PDF or HTML using Pandoc and Mermaid CLI.
Usage
docster -pdf path/to/file.md
docster -html path/to/file.md
Mermaid code blocks (```mermaid) will be rendered to SVG and embedded.
Requirements
- GHC + Cabal (via ghcup)
- Pandoc
- TeX Live (for PDF)
- Mermaid CLI (
npm install -g @mermaid-js/mermaid-cli
)
specific versions
source ~/.ghcup/env && ghcup install ghc 9.12.2 source ~/.ghcup/env && ghcup install cabal 3.16.0.0 source ~/.ghcup/env && ghcup install hls 2.11.0.0
Description
Languages
Haskell
99.2%
Shell
0.8%