Skip to content

Commit b47aaf3

Browse files
author
Hiromu Hota
authored
Adopt to the option --pdfFit, added at v8.8.0 of mermaid-cli (fix #43) (#55)
1 parent 4d6962f commit b47aaf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function mermaid(type, value, format, meta) {
7676

7777
var savePath = tmpfileObj.name + "." + options.format
7878
var newPath = path.join(outdir, `${options.filename}.${options.format}`);
79-
var fullCmd = `${cmd} ${confFileOpts} ${puppeteerOpts} -w ${options.width} -i ${tmpfileObj.name} -t ${options.theme} -o ${savePath}`
79+
var fullCmd = `${cmd} ${confFileOpts} ${puppeteerOpts} -w ${options.width} -f -i ${tmpfileObj.name} -t ${options.theme} -o ${savePath}`
8080
// console.log(fullCmd, savePath)
8181
exec(fullCmd);
8282
//console.log(oldPath, newPath);

0 commit comments

Comments
 (0)