Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

2.7.3 release notes — what changed since 2.7.2

Open PathGao opened this issue 3 months ago • 1 comments

Summary

41 PRs and 3 direct commits since the 2.7.2 bump. Almost every open bug that had enough information to act on has been fixed. The ones that remain are either awaiting reporter confirmation (Final_Check_Request label) or are packaging/platform questions that need your call. Every open issue now carries an appropriate label.

The architecture is simpler than it was: lib.rs shed ~250 lines of dead code, the markdown preprocessing pipeline leans more on comrak and less on regex, and the load/save fidelity machinery is guarded at every stage.

Since this note was first written, 16 more PRs landed. They fall into three groups that were not in the original list at all: the release pipeline (which turned out to be publishing to Chocolatey from a run that never produced a release, and reporting success on a snap build that had been broken for three months), the Linux updater (package-managed installs were offered updates they cannot install), and a test conversion pass (source-shape assertions replaced with tests that run the code). Those sections are marked added after 2026-08-08 below.


Bug fixes

Critical

Clipboard rewritten (#548, #551) — Copy from the editor and the preview now go through one Rust path. The preview no longer puts 19 MB of WebArchive on the clipboard for copying one sentence. Fixes #207, #549.

Non-UTF-8 documents survive a save (#544) — GBK, Big5, Shift-JIS, CP-1252 and friends are detected on open and written back in the same encoding. Documents that cannot be decoded in any encoding are refused the overwrite and directed to Save As. Fixes #372.

Large-file load race (#552, #553) — A document opened from the command line or Finder could receive two loads on the same tab, and a stale preview slice landing last would overwrite the complete buffer, permanently refusing every save. The first stage now carries a revision guard. Plus a Save As escape hatch for any tab already in that state. Fixes #547.

Task checkboxes work in preview (#534) — Toggling a checkbox in reading mode now writes the correct line even in CRLF documents. Checkboxes look like checkboxes again.

CJK punctuation no longer boxed (#546) — Monaco's Unicode highlighter outlined every fullwidth comma and parenthesis in CJK prose. Ambiguous characters are now suppressed. Fixes #186, #94.

Linux: no more updates that cannot be installed (#573) — added after 2026-08-08. .deb, .rpm and snap installs were told a new version was available, and the install then failed. __TAURI_BUNDLE_TYPE is not patched into the Linux binary, so tauri's bundle_type() is None and all three formats fell through to the AppImage strategy — renaming a downloaded file over /usr/bin/Markpad. A new self_update_supported command is consulted before the check, and package-managed installs now get a phase that says where their updates actually come from. Windows and macOS are untouched. Fixes #570.

Scroll sync

Rewritten to be block-accurate (#541, #515) — No longer drifts by 60+ source lines on long documents. The algorithm maps panes by source line anchor points instead of ratio, matching VS Code's approach.

ToC

Floating outline no longer sits on the text (#545) — The ToC overlay now detects when it would overlap the document and shifts to the side.

Other fixes

  • macOS Edit menu paste (#527) — Cmd+V in the menu works again.
  • Line ending in status bar (#540) — Shows the document's real line ending.
  • 50KB to 5MB threshold (#554) — The two-stage preview load only engages for multi-MB files now, not for every document over 50 KB.
  • Media players inherit source line — Audio/video embeds no longer shift task checkbox line numbers.
  • Release notes selectable (#538) — The updater dialog text can be selected and copied.
  • Repeated Cmd/Ctrl+F re-focuses the preview find bar (#560) — added after 2026-08-08. Once the bar was open, the shortcut assigned a value the state already held, so the focus effect never re-ran and the field could only be reached with the mouse. The previous query comes back selected, the way Chrome, Firefox and VS Code do it. Fixes #559.

Features

  • Sticky scroll, smooth scrolling, smooth caret (#555) — Three Monaco options that VS Code has had for years. Sticky scroll shows the current heading at the top while scrolling. Toggle in Settings.
  • Right-click to Edit jumps to the fragment (#539) — Click "Edit" on any heading or paragraph and the editor lands exactly there.
  • Heading link completion (#520) — Type [ in the editor and get completions from the document's own headings.
  • Copy Reference produces standard Markdown (#522) — [text](file.md) instead of wikilinks, with a preference switch.
  • Two new settings (#517) — Split view as default, and ToC follows the editor pane. Settings semantics are now honest (no more "auto-save on" checkbox that did not auto-save when a second checkbox contradicted it).

Release pipeline

Added after 2026-08-08. None of this changes the app; all of it changes what happens when you cut a release, so it is worth reading before 2.7.3 goes out.

Package managers publish after the release, not during the build (#561) — choco push and snapcraft push ran inside build.yml's platform matrix, both with continue-on-error: true. Two consequences, both measured:

  • Chocolatey's markpad-app 2.7.2 was published by a run that then failed on Linux and produced no release; the release users actually got came out of a different run three hours later. A Chocolatey version cannot be un-pushed.
  • The snap build has failed since v2.6.11 (rustup not found), reporting success for three months and six versions while the Snap Store went on serving 2.6.11 — and every release told people to sudo snap install markpad. Nobody reported it because from the outside there is nothing to see.

There is now a separate publish-packages.yml, triggered by release: published — a human clicking Publish on a draft whose assets they have checked. Two independent jobs, neither swallowing a failure. The Chocolatey package wraps the release's own .exe instead of a second build, the snap gets the rust-deps part it needs, and the AppImage strip step is a runnable script (scripts/strip-appimage.sh) that verifies the repacked artifact rather than the AppDir. @tauri-apps/cli floored at ^2.11.4 so the TAURI_SIGNING_* names work (#497).

The recovery path reports something actionable (#566) — the workflow_dispatch re-run of the above can only ever be pointed at an already-published tag, so the Chocolatey half always failed on a duplicate that is expected rather than wrong. It asks the feed before packing, and a lookup that cannot answer falls through to the push rather than blocking it. Also corrects the README and RELEASING.md, which told .deb and .rpm users they update "through their distribution channels" — there is no apt or dnf repository, which is what turned into #570 and #573.

CI is cached, and the cache fits (#572, #574) — 86% of the Linux job was Rust compilation with no cargo cache anywhere in the repository. rust-cache is now in all three workflows, keyed so the two Windows matrix entries cannot restore each other's target directory. #574 is the correction: the repository was already at 13.22 GB against a 10 GB limit (113 npm entries), so the cargo caches were the first thing evicted and #572 saved nothing — measured, 12m12s against a 12m14s baseline. Cargo caches now save only on master, build.yml gives its cache back, the npm cache is removed (it saved seconds), and stale entries were cleared: 117 entries / 13.22 GB → 31 / 3.15 GB. scripts/ciCacheBudget.test.ts holds both halves so the next change has to re-do the measurement.


Architecture

  • comrak-native highlight and inline footnotes (#523) — Two regex passes replaced with comrak options. Fewer edge cases, fewer line-number bugs.
  • Error type for internal functions (#514) — 39 .map_err(|e| e.to_string()) sites reduced. Internal helpers use ? on std::io::Error directly, tauri commands convert at the boundary.
  • unwrap() to expect() / lock_recover (#513) — Every non-test unwrap() now says why it cannot fail. Mutex locks survive poisoning the way window_runtime already did.
  • 17 wrapper functions deleted from lib.rs (#509) — #[tauri::command] moved to window_runtime where the logic lives.
  • 302 dead i18n keys removed (#508) — installer/uninstaller translations from 26 languages, unused since the old custom installer was deleted.
  • Dead installer code removed from binary (#507) — forward_legacy_uninstall(), is_installer_mode detection, and the "installer" window label are gone. The code triggering Windows Defender heuristics no longer exists in the shipped file.
  • Node.js v25 compatibility (#510) — Tests pass on Node 25.
  • Debug leftovers removed (#511) — println!("Setup Args: ...") on every launch, two stray console.log calls.
  • AppImage build fix (#529) — Signing key added to the CI step.
  • One source for the Monaco options (#571) — added after 2026-08-08. Ten settings-derived options were written twice, in the create literal and in the updateOptions effect, with nothing making the copies agree — the defect that produced the fontSize-with-and-without-zoom race. editorOptionsFromSettings() removes the duplicate, and the two tests whose job was to require the duplicate stay character-identical are replaced by tests that call the function with each stored value.
  • A #[tauri::command] nothing could reach (#575) — added after 2026-08-08. convert_markdown carried the attribute while never appearing in generate_handler!: 51 declared, 50 registered. A command name has no compiler behind it in either direction, so it read as live code forever. The attribute goes, and a test holds both lists against each other. Also removes the unused State import — cargo check --all-targets is now clean.

Tests

Added after 2026-08-08. scripts/ had 109 test files, 31 of which imported nothing from src/ — they matched the source text with a regex. That kind of assertion goes green when the behaviour breaks but the spelling survives, and red on a rename that broke nothing. #563 names the two kinds in AGENTS.md and asks in the PR template which one you added; #564–#569 convert six files and #576 the last one that needed a source move first, each mutation-checked in both directions:

PR was now
#564 regexes over markdown.ts renders a document with two Setup headings and asserts collapsing one leaves the other open
#565 doesNotMatch(/tabManager\.closeTab/) drives a failing read through a real session: same tab, buffer intact, recent entry kept, one error with its cause
#567 six assertions about how the YouTube fallback is written renders all four URL spellings; the DOM shim now reflects href/src, which every shim-based test had been blind to
#568 five names the snapshot must not contain round-trips the window snapshot and looks for unsaved text in the JSON
#569 three regexes over the window tag round-trips the tag
#576 assert.match(handler, /if \(!\(await canCloseTab\(dirty\.id\)\)\) return;/) the window-close unsaved-tab review moves to sessions/closeReview.ts and is run: the tab is activated before the dialog names it, tabs after a cancel are never touched, and a tab that becomes dirty again mid-walk is reviewed again

Suite: 941 → 973 tests.

Two of those measure the same tax from different directions: #571 and #576 each had to retarget assertions in other files that had pinned a call site by name, none of which claimed anything that changed.

Dependencies

  • dompurify to 3.4.13 (#528)
  • nanoid past GHSA-2v37-7h3g-55p8 (#536)

Documentation

  • Markdown syntax reference in the repo (#524), brought up to 2.7.3 and given its own README section between Download and Installation, plus a Gatekeeper notice generated into the release body rather than pasted by hand (#558) — added after 2026-08-08
  • README reshaped with a download table
  • Test fixtures reorganized (#550)

What is left

The open bugs all carry Final_Check_Request — they need confirmation from the reporter against a build, or are platform-specific:

Issue What it needs
#498 AppImage libwayland — has a fix (#499), needs a release to confirm
#201 Unprocessable file recovery — session restore now handles this, needs reporter confirmation
#209 macOS TCC permission — needs notarization
#262 Italian keyboard shortcuts — needs info from reporter

Four packaging/platform questions are yours to decide, not mine to fix:

Issue The call
#562 Whether to keep the snap at all — #561 makes it build again, but half the list on that issue disappears if it goes
#500 AUR: official markpad-bin or leave it to the community
#497 Dependabot cannot propose tauri; no configuration changes that
#394 CSP img-src https: and filesystem-wide asset scope

The open enhancements are genuine feature requests (RTL support, spell check, Homebrew, AUR) — none are quick wins left in the drawer.


On shipping 2.7.3

2.7.2 went out on 2026-08-07, and the diff is already 41 PRs deep. Everything here has been through CI, svelte-check, and the 973-test suite.

Two things about this release specifically:

  • The Chocolatey and snap pushes no longer happen during the build. They fire on release: published, so nothing reaches a package feed until you click Publish on a draft you have looked at. This is the first release that works that way.
  • The snap that goes out will be the first since 2.6.11. Worth watching that job rather than assuming it passed, since assuming it passed is what caused the problem.

A personal note

This wraps up my heavy development on Markpad. What started as fold-layout fixes and multi-window tab transfer turned into over 200 PRs across every layer of the app, and I am genuinely proud of where the codebase is now. Markpad is the first open source project I have contributed , and a lot of what I learned about how to work in someone else's codebase — when to ask, when to just fix, how to write a commit message that ages well — came from watching how you maintain this project. Thank you for the trust and the patience.

I will stick around for small bugs and good enhancement fits, but the heavy lifting is done. I have already started telling friends about Markpad, and I mean it when I say contributing to it made me prouder than using it.

PathGao avatar Aug 08 '26 16:08 PathGao

incredible work with all the fixes and features alongside your detailed documentation in each PR @PathGao. thank you for your immense contribution to the project ❤️

alecdotdev avatar Aug 11 '26 06:08 alecdotdev