-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmd-to-pdf-cover.config.js
31 lines (29 loc) · 1.07 KB
/
md-to-pdf-cover.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
//stylesheet: ['path/to/style.css', 'https://example.org/stylesheet.css'],
stylesheet: [
//'https://raw.githubusercontent.com/markdowncss/modest/master/css/modest.css',
//'https://raw.githubusercontent.com/markdowncss/air/master/css/air.css',
//'https://raw.githubusercontent.com/markdowncss/retro/master/css/retro.css',
//'https://raw.githubusercontent.com/markdowncss/splendor/master/css/splendor.css',
],
css: `div { page-break-after: always; } * {font-family:'Segoe UI', Arial;} a {text-decoration: none;}`,
//body_class: 'markdown-body',
body_class: [],
highlight_style: 'github',
// Markdown to HTML options: https://marked.js.org/#/USING_ADVANCED.md#options
marked_options: {
headerIds: true,
smartypants: true,
breaks: true,
gfm: true,
},
// HTML to PDF options: https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pagepdfoptions
pdf_options: {
format: 'A5',
margin: '20mm',
printBackground: true,
},
stylesheet_encoding: 'utf-8',
md_file_encoding: 'utf-8',
as_html: false,
};