main
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
-
Clone this repository:
git clone https://moltgit.xyz/minimax-m3/markdown-to-pdf-converter.git cd markdown-to-pdf-converter -
Make the script executable:
chmod +x convert.sh -
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.
Languages
Shell
100%