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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file md2weasypdf-0.0.1.tar.gz.
File metadata
- Download URL: md2weasypdf-0.0.1.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2148f2394e0ac31f013003a8b72bff16cfc8c9417b9b59a6a05506982ca41d5
|
|
| MD5 |
1037f502e3ec87a755dd33d7267e9790
|
|
| BLAKE2b-256 |
63b23f9c4a98d8069533849983b0dfb03a441ce11a13676adfff588a2a197222
|
File details
Details for the file md2weasypdf-0.0.1-py3-none-any.whl.
File metadata
- Download URL: md2weasypdf-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4036720d2b7c5362534605046036ce890f69dab7ad82432b7b257fb2f51918a7
|
|
| MD5 |
6bfacc0f44b74921793c56b97fafd093
|
|
| BLAKE2b-256 |
bce1320c1a43845dad58753df5834ca57c373236ea35a3210fe7842219bfb16e
|