Metadata-Version: 2.1
Name: mdpdf
Version: 0.0.6
Summary: Python command line application to convert Markdown to PDF.
Home-page: https://github.com/normanlorrain/mdpdf
Author: Norman Lorrain
Author-email: normanlorrain@gmail.com
License: MIT
Download-URL: https://github.com/normanlorrain/mdpdf/archive/0.0.6.tar.gz
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=0.0.1
Description-Content-Type: text/markdown
Requires-Dist: pymupdf (>=1.16.10)
Requires-Dist: commonmark (>=0.9.1)
Requires-Dist: click (<8,>=7.0)

# mdpdf

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Python command line application to convert Markdown to PDF.

## Project Features

* Bare-bones: Only supports basic [CommonMark](https://commonmark.org/)
* *Not necessarily* beautiful: Left-aligned, PDF-base14 fonts. Reasonably pretty, but if you want more control, see alternatives below.
* Minimal requirements
    - [commonmark](https://pypi.org/project/commonmark/)
    - [PyMuMDF](https://pypi.org/project/PyMuPDF/)
    - [click](https://pypi.org/project/click/)

## Alternatives
There are several projects that can be considered if you need something with more features.  Of note: 
* [pandoc](https://pandoc.org/) + [latex](https://www.latex-project.org/)
* [rst2pdf](https://github.com/rst2pdf/rst2pdf)
* [rinohtype](https://github.com/brechtm/rinohtype)

## Installation

    $ pip install mdpdf

## Usage
    $ mdpdf [options] [input-file]...

Where options are:
- `-o` *output file*
- `-h` *header format*
- `-f` *footer format*

For example, specify the output file with the `-o` option:

    $ mdpdf -o article.pdf article.md



