Improve export, reload, and toolbar workflows - #195
Merged
alecdotdev merged 1 commit intoJul 1, 2026
Conversation
HTML export now renders from the Markdown source, rewrites local Markdown links, embeds local images as data URLs, and includes frontmatter metadata as a static properties block. Add a reload-from-disk action through the titlebar, native menu, and F5 with dirty-state protection. The editor formatting toolbar and the application titlebar toolbar can now be configured from settings, including visibility and order. The export path asks whether to open the saved HTML file in the system default app. PDF export still delegates to the system print dialog because that path does not expose the saved file path. fixes sftwrdotdev#154 fixes sftwrdotdev#163 fixes sftwrdotdev#185
alecdotdev
approved these changes
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.html, and include frontmatter as a static properties blockIssues
fixes #154
fixes #163
fixes #185
Notes
The PDF path still delegates to the system print dialog. That API does not expose the saved PDF path, so the open-after-export prompt is implemented for HTML export only in this PR. The existing PDF implementation remains unchanged.
The bring-to-front behavior for opening Markdown files in an existing instance is handled separately in #193.
Testing
npm run test:frontmatternpm run test:workflowsnpm run check(0 errors, 0 warnings)npm run buildcargo xwin check --target x86_64-pc-windows-msvccargo xwin test --target x86_64-pc-windows-msvc --no-rungit diff --checkAttempted
cargo teston the WSL/Linux host, but the environment is missing GTK/GIO pkg-config packages (gio-2.0.pc,gdk-3.0.pc). The Windows target checks above compile cleanly.