markdown-preview-plus
markdown-preview-plus copied to clipboard
Large images don't always load properly when saving as PDF
Description
When I add a large image to a markdown file, everything looks fine in preview mode, but the resulting PDF (using either the "Make PDF" or "Save As..." options) often doesn't have the full image in it.
Steps to Reproduce
- Add an image to a markdown file, e.g.

. (The image used in this example is a PNG of approximately 3000 × 2000 pixels.) - Use MPP to create a PDF.
Expected behavior:
The image should be fully displayed in the PDF, just as it is in preview mode:

Actual behavior:
The image is only partially displayed in the PDF:

Reproduces how often:
Probably depends on the size of the image, but I've seen it happen about 90% of the time or more when trying to create a PDF containing a large image. Usually if I try making a PDF over and over it eventually works.
Versions
Atom 1.60.0 macOS 12.3.1
Additional Information
I would be interested in seeing if others are able to reproduce this issue.
Well, I tried to fix the issue, but when I went to try to publish the patch version, I got
Publishing [email protected] ✗
Creating new version failed: Application error
Sigh. I'm switching to VSCode. I suggest you do the same.