feat(export): add theme selection to PDF, HTML & Image exports and fix dark/light styling - #253
Conversation
…e dark/light styling
|
@ThisIs-Developer is attempting to deploy a commit to the BS Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ection-and-styling-fixes
|
Here is a summary of the updates and fixes implemented in this PR: 🎯 Key Changes & Enhancements
The branch has also been rebased and synced with the latest |
ThisIs-Developer
left a comment
There was a problem hiding this comment.
Hi @itznan, I really like the direction of this PR—especially the theme-aware export options and rendering improvements.
I have one UI suggestion:
- Please make the theme selector more compact and modern. Also, remember the last selected theme for each export type, so reopening the dialog restores the user’s previous selection instead of resetting it to the current application theme.
Thank you for the work!
…d persist user preferences
|
I've addressed your UI feedback in commit a0a86c0:
Ready for your review! |
|
Thank you @itznan for implementing the requested changes. The updated theme selector and remembered export preferences are a great addition and make the export experience much better. Thank you again for the contribution and for improving Markdown Viewer! |
Summary
This PR enhances export capabilities and fixes several styling and parsing edge cases across exports:
1. Theme Selection Dialogs for Exports
2. Export & Preview Rendering Fixes
jsPDFand canvas render contexts with#0d1117.window.print)@pagemargins and edge-to-edge dark background coverage.> [!NOTE],> [!TIP], etc.) with dark backgrounds and color accents.---horizontal dividers with clean dark styling.data-color-mode="light"and overriding canvas variables.mermaid.run().---dividers from incorrectly being treated as YAML frontmatter.3. Desktop Offline Assets
prepare.js.