From 1aad86ab801326a669539ab6c21c54f84bcee523 Mon Sep 17 00:00:00 2001 From: buhori2023 <121916989+buhori2023@users.noreply.github.com> Date: Wed, 18 Oct 2023 18:57:32 +0700 Subject: [PATCH] Change dir render --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5fba4b1..0f96b3d 100644 --- a/index.js +++ b/index.js @@ -100,7 +100,7 @@ function markdownpdf (opts) { htmlToTmpHtmlFile.on('finish', function () { // Invoke phantom to generate the PDF var childArgs = [ - path.join(__dirname, 'phantom', 'render.js'), + path.join(opts.cwd, 'phantom', 'render.js'), tmpHtmlPath, tmpPdfPath, opts.cwd,