Open titanseason opened 4 years ago
Please upgrade Markdown PDF to ver1.4.3 and try.
Also seeing this error in VScode ver1.4.4
I am also seeing the same issue on MacOS with M1 processor. The error message is:
Error: ENOENT: no such file or directory, open '.pdf/Users/...../lib/README_tmp.html'
I received the same error that there was no such file or directory ...tmp.html.
The cause was that I had saved the file, but it wasn't saved as markdown. There was no extension. I found the solution when I tried to use pandoc to convert the same file and it gave the error that it could not deduce format from file extension. Once I added .md to the filename, it converted with no errors.
Got the same error today:
Error: ENOENT: no such file or directory, open 'DIRECTORY_WERE_MY_MARKDOWN_FILE_IS\https:\www.usb.org\compliance'
in combination with
convertMarkdownToHtml()
For me it was quite obvious to solve so here is the casue. I had a header line as follows:
## 1.1. USB-IF:[Compliance](https://www.usb.org/compliance)
which leads to the error. When changing to (space after the colon!):
## 1.1. USB-IF: [Compliance](https://www.usb.org/compliance)
PDF export works flawless. Maybe this brings some insights.
Extra Infos:
The version of Markdown PDF: 1.5.0
The version of my OS: Windows 11 (Pro)
The version of VSCode: 1.80.1
If the regular expression below matches, it is treated as an include, so it seems that the cause is an attempt to reference a local file. https://github.com/yzane/vscode-markdown-pdf/blob/5b6dbb25bec64071756cc8c02f5ce147ed85ade7/extension.js#L282-L287
I tried to fix it in the PR #351
When I right click the
.md
file content, and selectMarkdown PDF: Export(pdf)
or other menu items, I got these errors:and
And the exported pdf or html is empty.
Extra Infos:
Markdown PDF
: 1.4.2 (2020/02/16)