Commit Graph
10 Commits
Author SHA1 Message Date
sebastian e8b105a5fb test(md2doc): style smoke test for all 5 styles 2026-07-28 11:03:38 +03:00
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
sebastian 21b3a7a77d feat(md2doc): table, pre, blockquote, hr renderers 2026-07-28 10:27:02 +03:00
sebastian 5fd05ba2be feat(md2doc): recursive list renderer with manual numbering 2026-07-28 10:26:17 +03:00
sebastian 162485bfb2 test(md2doc): fix pStyle attribute + case-insensitive color compare 2026-07-28 10:24:55 +03:00
sebastian 36b6a16fd8 feat(md2doc): heading and paragraph renderers with inline formatting 2026-07-28 10:24:12 +03:00
sebastian 322eaad887 feat(md2doc): XML helpers — borders, shading, multi-level numbering 2026-07-28 10:23:18 +03:00
sebastian e3176a789e feat(md2doc): add skeleton — argparse, STYLES dict, stub converter 2026-07-28 10:22:20 +03:00
sebastian 0b344d3bb8 feat(md2doc): copy _bulletize helper from md2pdf (spec §3.3) 2026-07-28 10:21:33 +03:00
sebastian 2a2c0ed249 chore: add deps test for md2doc (python-docx, lxml) 2026-07-28 10:21:00 +03:00