Commit Graph
4 Commits
Author SHA1 Message Date
sebastian 5a62572f55 feat: --footer/--header with {page}/{pages} placeholders, center-aligned
md2pdf.py:
- Expose --footer and --header (was dead code before)
- Remove --forms flag (B2 fix — weasyprint 68.1 silently drops <input>)
- Substitution support: {page} → counter(page), {pages} → counter(pages)
- Center-aligned via @bottom-center / @top-center

md2doc.py:
- Add --footer and --header support via Word field codes (PAGE, NUMPAGES)
- Center-aligned paragraph in footer/header
- Same {page}/{pages} substitution API as md2pdf

Both tools:
- GFM task list support: - [ ] → ☐, - [x]/- [X] → ☑ (synced _bulletize)
- Help text explains placeholder syntax with examples
2026-07-28 11:02:23 +03:00
sebastianandClaude Opus 4.5 630660adb2 Remove minimal style, add mono style, make elegant default
- Removed minimal style (not useful)
- Added mono style with JetBrains Mono font
- Changed default from default to elegant
- Fixed bullet consistency with list-style-type: disc

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 15:01:58 +02:00
sebastianandClaude Opus 4.5 48829d4007 Fix bullet points for PDF text extraction
Use list-style-position: inside so bullets are part of text flow,
not separate positioned elements. Fixes copy/paste issues.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 14:32:08 +02:00
sebastianandClaude Opus 4.5 c93974fd3d Initial commit: md2pdf markdown to PDF converter
- Python script with weasyprint for high-quality PDF output
- Wrapper script for easy execution with bundled venv
- Multiple styles: default, minimal, dark, elegant
- Supports single file or directory conversion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 14:28:59 +02:00