yzane / vscode-markdown-pdf

Markdown converter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf
Other
989 stars 203 forks source link

Markdown 1.4.3 - unable to create PDF from md #185

Open sztrzask opened 4 years ago

sztrzask commented 4 years ago

When I try to create pdf from markdown file that includes tables and images, nothing happens. HTML is generated but pdf is not - the process either never ends or ends with timeout. I'm using 1.4.3

yzane commented 4 years ago

Did you create a PDF with Markdown 1.4.2 ? Could you provide a sample file that causes a problem ?

sztrzask commented 4 years ago
# Markdown PDF

This extension converts Markdown files to pdf, html, png or jpeg files.

## Table of Contents

<div class="page"></div>

## Features

Supports the following features
* [Syntax highlighting](https://highlightjs.org/static/demo/)
* [emoji](http://www.webpagefx.com/tools/emoji-cheat-sheet/)
* [markdown-it-checkbox](https://github.com/mcecot/markdown-it-checkbox)
* [markdown-it-container](https://github.com/markdown-it/markdown-it-container)
* [markdown-it-include](https://github.com/camelaissani/markdown-it-include)
* [PlantUML](http://plantuml.com/)
  * [markdown-it-plantuml](https://github.com/gmunguia/markdown-it-plantuml)
* [mermaid](http://knsv.github.io/mermaid/)
  * [knsv/mermaid](https://github.com/knsv/mermaid)

Any kind of .md file doesn't work, even this.

Last time I checked it was working was a month ago - it was latest version at that time.

yzane commented 4 years ago

Can you solve the problem with the following operation ?

  1. Set the markdown-pdf.executablePath option
  2. Restart the Visual Studio Code
sztrzask commented 4 years ago

Yup, that solves the issue. Is there an alternative to this?

yzane commented 4 years ago

If the PDF was generated using the markdown-pdf.executablePath option, you may have failed to automatically download Chromium. Therefore, please reinstall markdown-pdf.

arturocandela commented 4 years ago

I've got the same problem.

Problem: " The extension is not able to download and install chromium". Test Environment:

Captura de pantalla 2020-03-17 a las 11 14 38

Working: LUbuntu:

I'm sorry but I'm quite busy today If I had time I will provide more data.

Regards and thank you for your work in the project, It's very helpful for me and my students.

arturocandela commented 4 years ago

I've upgraded vscode and the extension in MacOs, and now Markdown-pdf is working again:

Thank you! Regards

alanwunsche commented 4 years ago

Can you solve the problem with the following operation ?

  1. Set the markdown-pdf.executablePath option
  2. Restart the Visual Studio Code

Is this the executable path? /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome

snakeland commented 3 years ago

Setting executable like @yzane mentioned fixes the problem for me.

jose-amat commented 3 years ago

Setting executable like @yzane mentioned fixes the problem for me.

For me too.