Skip to content

jpsyx/markdown-to-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdown-to-pdf

An opinionated utility script to convert a Markdown file to a styled PDF.

This is a small Python tool (built on ReportLab) with a thin shell entry point.

Usage

./run.sh <file.md>                 # write <file>.pdf next to the input
./run.sh <file.md> --out out.pdf   # explicit output path

Requirements

  • Python 3
  • reportlab (pip install -r requirements.txt)

Layout

  • run.sh — entry point; resolves its own dir and execs python3 main.py.
  • main.py — the converter (argument parsing, Markdown → PDF rendering).
  • test_inline_markup.py — unit tests for inline-markup parsing.
  • docs/architecture.md — how the converter is structured.

Development

Run the tests (unittest):

python3 test_inline_markup.py

License

MIT

About

Convert a Markdown file to a styled PDF

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors