A clicked link stays in mdr, the web page can be printed for an editor
preview, and the document column has a width of its own. Everything below
landed on main after 0.6.1.
Added
- A clicked link stays in mdr (#75). gui and the terminal share one
decision: a relative Markdown file replaces the document in this window, a
#fragment scrolls to the heading the table of contents already names, and
http, https and mailto still go to the system browser. Anything else
is refused. In the terminal the target stays on each span, so a link split
by wrapping — or sitting in a list, a table or a footnote — is still the
link. A click on the bullet, the table of contents or ordinary text does
nothing.
- --export html writes the web page to stdout (#79, thanks @Andsbf).
Same pipeline as the window: Mermaid as SVG, images inlined, highlighting,
the table of contents. It takes a file or stdin, and relative images resolve
against the document's directory, or the working directory when the
document is piped. A build without the web backend says which feature to
enable. --allow-connect is accepted only together with --export, and it
changes one CSP directive, connect-src, from 'none' to 'self', so a
preview server on the same origin can tell the page to reload. A reader
that closes the pipe early still exits 0.
- content-width in config.kdl (#82, thanks @cbecker). The cap on the
document column in gui and web. It defaults to 900, so an existing
config draws the same column it did. A value that is not a positive number
is ignored, with a warning.
- The web table of contents folds (#78, thanks @Andsbf). A section
collapses, the choice is kept in sessionStorage for the page, and the
print stylesheet still shows every entry. The heading text is escaped
before it is placed in the link: the page allows inline scripts, and that
text was being interpolated raw.
Fixed
- gui tables fit the pane (#72, #76). Narrow columns were scaled down
with the wide ones and then pinned to a floor that left one pixel of text,
so a word wrapped one letter per line, and the width handed back by that
floor pushed the last columns past the edge. Width is now taken from the
columns that have some to spare. A table that already fits is left alone.
- The web fullscreen overlay (#77, thanks @Andsbf). The expand icon stays
at its own size, and a click anywhere on the overlay closes it. The image
used to fill the overlay, so most of what looked like the backdrop did
nothing.
- Percent-encoded paths are UTF-8 (#80, thanks @Thijs226). caf%C3%A9.md
was decoded one byte at a time and opened as café.md. The bytes are
reassembled before they are read as a string. A literal Unicode character,
a plus sign, and a malformed escape are left as they are.
Changed
- Dependencies (#84). comrak 1.2, the egui stack at 0.37
(egui_commonmark 0.26), resvg and usvg 0.50, muda 0.21, notify 9. rustls
moves to 0.23.46. The minimum supported Rust stays 1.95. comrak 1 gives
emphasis, strong, strikethrough, thematic breaks and table rows a payload;
the matches follow that. notify's debouncer now reports a batch, and a
Rescan re-reads the document.
- The Nix package builds again (#81, thanks @JHolba; #86, thanks
@papajade55-debug). Linux inputs follow the renamed nixpkgs attributes
(wrapGAppsHook3, xdotool), the platform check is
stdenv.hostPlatform.isLinux, and the documented Nix commands pass
--no-write-lock-file because this repository does not commit a
flake.lock. Oniguruma is a build input — onig_sys asks pkg-config for
it — and CI builds the flake on Linux.