feat: bundled default md-to-pdf config (homework style)
This commit is contained in:
35
plugins/md-to-pdf/skills/md-to-pdf/default.config.js
Normal file
35
plugins/md-to-pdf/skills/md-to-pdf/default.config.js
Normal file
@@ -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; }
|
||||
`,
|
||||
};
|
||||
Reference in New Issue
Block a user