From 226fb6b56fc12810a540ce826091beaf24a78d36 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 4 May 2026 20:08:25 +0200 Subject: [PATCH] feat: bundled default md-to-pdf config (homework style) --- .../skills/md-to-pdf/default.config.js | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 plugins/md-to-pdf/skills/md-to-pdf/default.config.js diff --git a/plugins/md-to-pdf/skills/md-to-pdf/default.config.js b/plugins/md-to-pdf/skills/md-to-pdf/default.config.js new file mode 100644 index 0000000..3bd196a --- /dev/null +++ b/plugins/md-to-pdf/skills/md-to-pdf/default.config.js @@ -0,0 +1,35 @@ +module.exports = { + pdf_options: { + format: 'A4', + margin: '15mm 12mm', + printBackground: true, + }, + css: ` + @page { size: A4; margin: 15mm 12mm; } + html, body { width: 186mm; max-width: 186mm; margin: 0; padding: 0; } + body { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 11pt; } + h1 { font-size: 18pt; } + h2 { font-size: 14pt; margin-top: 1.2em; } + h3 { font-size: 12pt; } + h4 { font-size: 11pt; } + table { + border-collapse: collapse; + font-size: 5pt; + margin: 0.6em 0; + table-layout: fixed; + width: 100%; + } + th, td { + border: 1px solid #888; + padding: 1px 3px; + white-space: nowrap; + vertical-align: top; + letter-spacing: -0.1px; + overflow: hidden; + } + code { font-size: 0.9em; background: #f4f4f4; padding: 0 2px; border-radius: 2px; } + td code, th code { font-size: 0.85em; padding: 0 1px; } + th { background: #f0f0f0; } + blockquote { border-left: 3px solid #ccc; margin: 0.5em 0; padding: 0.2em 0.8em; color: #444; } + `, +};