Skip to content

feat: Add PNG Image Export Support#177

Merged
ThisIs-Developer merged 1 commit into
ThisIs-Developer:mainfrom
Sahaj33-op:feat/export-png
Jun 16, 2026
Merged

feat: Add PNG Image Export Support#177
ThisIs-Developer merged 1 commit into
ThisIs-Developer:mainfrom
Sahaj33-op:feat/export-png

Conversation

@Sahaj33-op

Copy link
Copy Markdown
Contributor

This PR adds the ability to export the markdown preview as a PNG image.

Changes

  • Added Image (.png) to the Export dropdown in the desktop and mobile toolbars.
  • Implemented exportPng utilizing html2canvas and FileSaver to capture the DOMPurify sanitized preview, identical to the PDF capture approach.
  • Propagated translation mappings for the new dropdown option.
  • Synchronized desktop-app/resources for Neutralinojs compatibility.

@Sahaj33-op

Copy link
Copy Markdown
Contributor Author

Output image of default markdown text:

document

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

@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.

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment Jun 16, 2026 4:54am

@ThisIs-Developer ThisIs-Developer merged commit c82fda6 into ThisIs-Developer:main Jun 16, 2026
4 checks passed
@ThisIs-Developer

Copy link
Copy Markdown
Owner

@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!

@ThisIs-Developer

Copy link
Copy Markdown
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants