Convert Markdown to PDF via CLI and GUI (with optional AI summary)
Project description
md2pdf
📄 Markdown to PDF Converter with CLI & GUI
md2pdf は、Markdown ファイルを美しくカスタマイズされた PDF に変換できる Python パッケージです。CLI と GUI の両方に対応し、以下のような特徴を備えています。
✨ 特徴
- ✅ Markdown → PDF 変換(HTML + CSS + WeasyPrint)
- 🎨 3種類のデザインテンプレート(default / zenn / github)
- 🧠 AI要約機能(オプション)
- 🖥 Streamlit ベースの GUI 操作
- 🔧 CLI からの高速変換も可能
🔧 インストール
git clone https://github.com/yut0takagi/md2pdf.git
cd md2pdf
pip install -r requirements.txt
🚀 使い方
CLI(コマンドライン)
python -m md2pdf .cli convert example.md --style github
オプション:
--style: 使用するCSSテンプレート(default, zenn, github)--summarize: AIによる要約を最後に追加(※APIキー必要)
GUI(Streamlit)
PYTHONPATH=. streamlit run md2pdf/gui.py
ブラウザが開き、アップロード&変換が可能です。
📁 ディレクトリ構成
md2pdf/
├── md2pdf/
│ ├── converter.py
│ ├── cli.py
│ ├── gui.py
│ └── styles/
│ ├── default.css
│ ├── zenn.css
│ └── github.css
├── example.md
├── requirements.txt
├── README.md
└── pyproject.toml
📄 ライセンス
MIT License
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
md2pdf_advanced-0.1.0.tar.gz
(3.6 kB
view details)
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 md2pdf_advanced-0.1.0.tar.gz.
File metadata
- Download URL: md2pdf_advanced-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58d4e3f9a2fd838425a060784806c4a24c28924650febc68f18b4b15cad474bc
|
|
| MD5 |
f70084aba126e28f6001e19896734e18
|
|
| BLAKE2b-256 |
3582a8adb48f18a199ce2de9310b1a253e46019c5c0b5fe0ee54a58b9ec5be90
|
File details
Details for the file md2pdf_advanced-0.1.0-py3-none-any.whl.
File metadata
- Download URL: md2pdf_advanced-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0933391f7cb3a8abc78161e4175a9c58b5ca3cb6eb0049f3956f76d4926b5bd
|
|
| MD5 |
cf023e8fdee5e1c25ad4b6313f630937
|
|
| BLAKE2b-256 |
29430edcd5af315e53d88b251cff3ed4070b9f53626bd205c0950b1090a665d9
|