/md-to-pdf:md-to-pdf <directory-path>from md-to-pdf
Convert a directory of markdown files to PDF with Mermaid diagram rendering
Ships in md-to-pdf. Installing the plugin adds it to Claude Code.
Convert a directory of markdown files into a single PDF document with properly rendered Mermaid diagrams.
--pdf-engine=weasyprint to create the final PDFCheck if the provided path is a directory with markdown files:
ls -la "<directory>" && ls "<directory>"/*.md 2>/dev/null | head -5
If no directory provided or no .md files found, inform the user.
Use AskUserQuestion to ask where to save the PDF:
# Check for pandoc
which pandoc || echo "pandoc not found - please install with: brew install pandoc"
# Check for weasyprint, install if missing
which weasyprint || pipx install weasyprint
Execute the main conversion script:
python3 "$CLAUDE_PLUGIN_ROOT/scripts/md-to-pdf.py" "<source-directory>" "<output-path>"
The script handles:
open "<output-path>"
/md-to-pdf /path/to/documentation
This will:
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub cajias/claude-skills --plugin md-to-pdf