Print PDFs from Markdown Files using Weasyprint
Project description
md2weasypdf
Print PDFs from Markdown Files using Weasyprint
Installation
pip install md2weasypdf
Usage
python -m md2weasypdf <input_folder_or_file> <output_path>
Watch Mode
python -m md2weasypdf <input_folder_or_file> <output_path> --watch
Input
Input files are expected in markdown format with several markdown extensions. The markdown documents can utilize Jinja2 for templating inside the document (e. g. reusing texts).
Options
YAML Frontmatter can be used to customize the document layout or add other options which will be passed to the template. The following example shows how a document with frontmatter section could look like:
---
title: My Document Title
layout: doc1
---
Lorem ipsum...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
md2weasypdf-0.0.1.tar.gz
(16.6 kB
view hashes)
Built Distribution
Close
Hashes for md2weasypdf-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4036720d2b7c5362534605046036ce890f69dab7ad82432b7b257fb2f51918a7 |
|
MD5 | 6bfacc0f44b74921793c56b97fafd093 |
|
BLAKE2b-256 | bce1320c1a43845dad58753df5834ca57c373236ea35a3210fe7842219bfb16e |