How to Fix VSCode markdown-pdf: Export Error

Tadashi Shigeoka ·  Thu, May 12, 2022

I’ll introduce how to fix errors when using markdown-pdf: Export in Visual Studio Code (VSCode).

VSCode | Visual Studio Code

Background: markdown-pdf: Export Not Working Due to Error

The VSCode extension Markdown PDF was giving an error with markdown-pdf: Export, so I researched the solution.

Fixed by Setting Chrome Path in Markdown-pdf: Executable Path

Markdown-pdf: Executable Path [Setting via GUI]

Markdown-pdf: Executable Path Path to a Chromium or Chrome executable to run instead of the bundled Chromium.

Set the following:

/Applications/Google Chrome.app/Contents/MacOS/Google Chrome

Markdown-pdf: Executable Path [Setting via settings.json]

"markdown-pdf.executablePath": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"

Above, I configured the Chrome path to make markdown-pdf: Export work in VSCode.

That’s all from the Gemba.

Reference Information