markdown-pdf: image is missing in exported pdf file

for example:

![](https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png)

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 36 (7 by maintainers)

Most upvoted comments

It works if you give a complete relative path to the picture.

E.g ![Picture](./assets/img1.png)

This seems to work and the image is displayed in the PDF that is generated as well.

+1 any update on this?

Hi, I right now have the exact same problem with Atom 1.8.0 on Windows 8.1 x64. But the “file://” workaround doesn’t work either. I simply cannot insert any image. In preview they are shown correctly, but the converted pdf does not contain them.

I still have this problem, Windows 10. Atom 1.23.2 and markdown pdf 2.1.0

I get the preview correctly but generated pdf has no images at all (not even the alt is generated as a place holder), do we know how to make this work?

Thanks in advance 😃

Hi everyone,

This path format worked for me for both the markdown preview, and the markdown to pdf package.

![](../images/triangle-client-paas-server.png)

Using Windows 10, Atom 1.53.0 x64

me too! putting … before the path did the job. Eg. ![image] (…/graphs/activity_plot.png)

Thanks!

Now we know that we need file://absolute/path/to/image. I will make a patch for this project to convert paths to this form before making the pdf. This will let users to get the correct pdf to match the output in the preview pane.

Thanks once again 😸

Update: @oldratlee: I linked the wrong repo last time 😮. Will be making a patch for this in the next little bit.