Your Name 7de2bc811a Add output directory structure and heading-based image naming
- Output files now go to output/<document-name>/ relative to input
- Images named after nearest heading (e.g., file_flow.svg)
- Multiple images under same heading get suffixes: _1, _2, etc.
- Images before any heading use document name as prefix
- Add StateT-based AST traversal for heading tracking
- Add HSpec test suite with 21 tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 17:47:49 +00:00
2025-09-02 10:52:07 +01:00

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.

Installation

Prerequisites

First install the required system dependencies:

./install-deps.sh

Install Haskell toolchain

Install ghcup (Haskell toolchain installer):

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
source ~/.ghcup/env

Install specific GHC and Cabal versions:

ghcup install ghc 9.12.2
ghcup install cabal 3.16.0.0
ghcup set ghc 9.12.2
ghcup set cabal 3.16.0.0

Install Mermaid CLI

npm install -g @mermaid-js/mermaid-cli

Build and install docster

cabal install --installdir=$HOME/.local/bin

Make sure ~/.local/bin is in your PATH. Add to your shell config if needed:

export PATH="$HOME/.local/bin:$PATH"

Development

See agents.md for information about the Claude Code agents used for Haskell refactoring in this project.

Description
Markdown + Mermaid to PDF with Pandoc
Readme 107 KiB
Languages
Haskell 99.3%
Shell 0.7%