Commit Graph

4 Commits

Author SHA1 Message Date
hykocx 39089e2f1d docs: simplify and clarify README content
Reword descriptions for conciseness, add a prerequisites section
for Node.js, and remove the dependencies table to reduce noise.
2026-04-15 11:40:09 -04:00
hykocx 0f09b30164 feat: add markdown-to-pdf converter with Puppeteer
Introduce a Node.js CLI tool that converts Markdown files to styled
PDFs using `marked` for parsing and `puppeteer` for rendering.

- Add `md-to-pdf.js` as the main conversion script with:
  - CLI argument handling for input/output file paths
  - Automatic output directory creation alongside the input file
  - Pre-processing to strip thematic breaks (`---`) before headings
  - Embedded CSS for clean, print-ready styling (headings, tables,
    code blocks, blockquotes, page breaks, etc.)
  - PDF generation via Puppeteer with A4 format and custom margins
- Add `.gitignore` to exclude `node_modules/` and `output/` directories
- Add `package-lock.json` with resolved dependencies (marked, puppeteer)
2026-04-15 11:28:16 -04:00
hykocx ffeaea1f38 docs: add full README with usage and feature documentation
Add comprehensive README in French covering installation, CLI usage
with optional output path, feature list (pagination, table styling,
code blocks, blockquotes), and a dependency table for `marked` and
`puppeteer`.
2026-04-15 11:28:01 -04:00
hykocx 76ddecb315 Initial commit 2026-04-15 10:20:25 -04:00