I’ll introduce how to fix errors when using markdown-pdf: Export in Visual Studio Code (VSCode).
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.
- GitHub: yzane/vscode-markdown-pdf: Markdown converter for Visual Studio Code
- README (Japanese): vscode-markdown-pdf/README.ja.md at master
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.
