normanlorrain / mdpdf

Python command line application to convert Markdown to PDF.
MIT License
52 stars 10 forks source link

mdpdf

License: MIT Code style: black

Python command line application to convert Markdown to PDF.

Project Features

Alternatives

There are several projects that can be considered if you need something with more features. Of note:

To Investigate

Usage

$ mdpdf [OPTIONS] [INPUTS]...

Options:

Templates:

The <template> is a quoted, comma- delimited string, containing the left, centre, and right, fields for the header/footer. Format is "[left],[middle],[right]".

Possible values to put here are:

Example:

$ mdpdf -o article.pdf article.md

$ mdpdf -o article.pdf --footer "{date},{heading},{page}" article.md