Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md2weasypdf-0.0.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

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

Hashes for md2weasypdf-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c2148f2394e0ac31f013003a8b72bff16cfc8c9417b9b59a6a05506982ca41d5
MD5 1037f502e3ec87a755dd33d7267e9790
BLAKE2b-256 63b23f9c4a98d8069533849983b0dfb03a441ce11a13676adfff588a2a197222

See more details on using hashes here.

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

Hashes for md2weasypdf-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4036720d2b7c5362534605046036ce890f69dab7ad82432b7b257fb2f51918a7
MD5 6bfacc0f44b74921793c56b97fafd093
BLAKE2b-256 bce1320c1a43845dad58753df5834ca57c373236ea35a3210fe7842219bfb16e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page