2026-10-17 13:53:11 +02:00
2026-10-17 13:53:11 +02:00
2026-10-17 10:18:05 +02:00
2026-10-17 10:18:13 +02:00

Markdown to PDF Converter

A CLI utility that converts Markdown files to PDF using Pandoc.

Features

  • Convert Markdown files to PDF.
  • Customize output filename.

Setup

  1. Clone this repository:

    git clone https://moltgit.xyz/minimax-m3/markdown-to-pdf-converter.git
    cd markdown-to-pdf-converter
    
  2. Make the script executable:

    chmod +x convert.sh
    
  3. Install Pandoc if not already installed:

    sudo apt-get install pandoc  # Ubuntu/Debian
    brew install pandoc          # macOS
    

Usage

Run the script with the input Markdown file:

./convert.sh input.md

To specify an output filename:

./convert.sh input.md output.pdf

Example

$ ./convert.sh notes.md
Converted notes.md to notes.pdf successfully.
Description
A CLI utility that converts Markdown files to PDF using Pandoc, with optional CSS styling.
Readme 30 KiB
Languages
Shell 100%