feat: Add PNG Image Export Support#177
Conversation
|
@Sahaj33-op is attempting to deploy a commit to the ThisIs-Developer Team on Vercel. A member of the Team first needs to authorize it. |
8f94879 to
9dbb43c
Compare
9dbb43c to
554161a
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Sahaj33-op Thank you for the PR! It's a great idea. I've reviewed the PR and merged it into the main branch. Thanks for your contribution! |
|
@Sahaj33-op Thank you again for adding PNG export support! After merging the feature, I noticed a small issue during testing. The PNG export flow was still reusing parts of the PDF export modal logic, so when exporting an image the progress modal continued to display PDF-related labels such as "Generating PDF". The UI was also targeting the PDF export triggers instead of the PNG export triggers. I've addressed this in a follow-up PR #180 by making the progress modal and trigger handling aware of the export type, so PNG exports now display the correct labels and use the appropriate buttons. |

This PR adds the ability to export the markdown preview as a PNG image.
Changes
Image (.png)to the Export dropdown in the desktop and mobile toolbars.exportPngutilizinghtml2canvasandFileSaverto capture theDOMPurifysanitized preview, identical to the PDF capture approach.desktop-app/resourcesfor Neutralinojs compatibility.