md-html-to-pdf
Version:
CLI tool for converting Markdown files or Html files to PDF.
30 lines (29 loc) • 755 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultConfig = void 0;
const path_1 = require("path");
exports.defaultConfig = {
basedir: process.cwd(),
stylesheet: [(0, path_1.resolve)(__dirname, '..', '..', 'markdown.css')],
script: [],
css: '',
body_class: [],
page_media_type: 'screen',
highlight_style: 'github',
marked_options: {},
pdf_options: {
printBackground: true,
format: 'a4',
margin: {
top: '30mm',
right: '40mm',
bottom: '30mm',
left: '20mm',
},
},
launch_options: {},
md_file_encoding: 'utf-8',
stylesheet_encoding: 'utf-8',
as_html: false,
devtools: false,
};
;