A command-line utility for converting Markdown files to beautifully styled PDF documents.
- Convert single or multiple Markdown files to PDF
- Customized styling with professional fonts
- Code syntax highlighting
- Support for tables, lists, and other Markdown features
- Automatic dependency installation
# Install system-wide
sudo ./install.sh
# To uninstall
sudo ./install.sh --uninstall
# Convert all .md files in docs/ directory
markpdf
# Convert specific files
markpdf file1.md file2.md
# Convert files matching a pattern
markpdf /path/to/docs/*.md
# Generate PDF in a specific output directory
markpdf -o output_dir file.md
-h, --help
: Display help message-a, --all
: Process all .md files in source directory-r, --readme
: Process only README.md-s, --source DIR
: Specify source directory (default: docs)-o, --output DIR
: Specify output directory-i, --install
: Force installation of dependencies-v, --version
: Display version information
- Node.js
- md-to-pdf package (automatically installed if needed)