Skip to content

v0.13.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 10:28
· 158 commits to main since this release

ManT 0.13.0

ManT 0.13.0 improves keyboard reading, live search, code highlighting and native
document layout, with more reliable navigation in large manuals.

Upgrading from 0.11 or earlier? Also read the
0.12.0 release notes,
especially Breaking changes and Possible leftovers after upgrading.
Configuration, data/cache directories and mant.toml behavior are unchanged
from 0.12.1; this release does not move your files again.

Highlights

  • Content-first keyboard reading. j/k scroll, g/G go to the edges,
    d/u or Ctrl+d/u move half a page, and Space/f/b page down/up.
    Tab switches between Content and Outline. Focus cues, contextual bottom hints
    and F1 help show which controls are active.
  • Live, less-style search. / searches forward and ? backward using
    case-sensitive regexes. Typing previews highlights without moving the page;
    Enter confirms, n repeats and N reverses direction. Page and Outline
    queries remain independent. Large scans run in cancellable slices and disclose
    provisional/partial counts. Literal, case and wrapping controls remain available.
  • Complete, clearer code examples. Continuous native literal displays stay
    in one code block instead of splitting at internal blank rows. A single empty
    initial row is omitted when followed by nonblank code; authored whitespace,
    multiple initial rows and internal/trailing rows remain intact. Syntax colors
    survive source bold/italic styling, including C synopses such as regex(3).
    Shell substitutions, synopsis alternatives and entry signatures receive
    distinct delimiter/operator accents.
  • More readable tables. Authored frames, grid strokes, whole-table placement
    and declared logical columns survive loading. Terminal readers wrap cell prose
    at narrower widths before falling back to source order. Markdown export retains
    cell-local literal rows and addressable anchors without duplicating content.
  • Native layout and navigation fixes. Alignment and temporary first-line
    indentation survive wrapping. Large manuals such as ffmpeg-all can restore
    tab locations without repeated full-document fragment scans. Manual queries
    and citations prefer an exact category, then allow alphabetic extensions of
    an absent main category (for example ed(1) → ed(1p)). Exact addresses and
    explicitly suffixed categories remain exact. TLDR browser targets no longer
    accidentally include surrounding sentence punctuation.
  • Updated foundations. The pinned mandoc CVS baseline is
    cvs-20261013T025419Z. Dependency updates include Rustls security fixes and
    emSign certificate distrust fixes (RUSTSEC-2026-0381 and RUSTSEC-2026-0382);
    the minimum Rust version remains 1.88.

Breaking changes

  • TUI default keys: j/k now scroll Content until Tab switches to Outline.
    Lowercase b pages up in Content; uppercase-character B toggles the sidebar.
    d/u moves half a page, not a full page. ? opens backward search; use F1
    for help. Outline's Space/Enter retain their node actions.
  • TUI search: the default is case-sensitive regex matching, not
    case-insensitive literal matching. In the field, Ctrl+R toggles Literal,
    Alt+C cycles Sensitive/Ignore/Smart case and Alt+W toggles wrapping (off
    by default). The Search menu exposes the same controls. Invalid patterns
    remain editable; CLI/protocol search defaults are unchanged.
  • Native contracts advance from v0.12 to v0.13. Check
    mant --protocol-version, regenerate clients using mant --schema all, and
    migrate complete request/response discriminators together. This includes new
    row-layout fields, normalized equation structure and table layout/border facts;
    changing only the marker is insufficient. v0.12 markers are not runtime aliases.
    Published v0.12 snapshots remain frozen. Doctor, tldr-update and
    Markdown-coordinate contract families are unchanged.
  • Rust consumers: update RowLayoutHint, table, row, cell and native node
    literals for added fields; table spans are positive u32. Migrate
    advance_limit_columns to max_alignment_padding_columns, and equation
    EquationPosition/position to EquationOperator/operator. Equation enums
    use kebab-case on the wire; parser counters are removed. Complete code owners
    can change snapshot-local block paths: resolve positions against the new
    snapshot rather than retaining old paths. See the
    crate compatibility changelog
    and IR reference.
  • Coordinate native dependency upgrades:
    libmandoc-rs::special_character(":") now returns Visible('\u{200b}'), not
    ZeroWidth. A catalog scalar is distinct from terminal-cell behavior. Review
    exhaustive matches and native-renderer golden output; Cargo's links boundary
    cannot link both minor versions together.

Crate versions

mant, mant-ir, mant-protocol, mant-codec, mant-loader, mant-query,
mant-render, mant-engine, mant-ui and libmandoc-rs: 0.13.0.
mant-sources: 0.10.2, with unchanged storage/configuration contracts.

Install or update

Unix:

curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/BryanHeBY/ManT/main/scripts/install.sh | sh

Windows PowerShell:

irm https://raw.githubusercontent.com/BryanHeBY/ManT/main/scripts/install.ps1 | iex

Possible leftovers after upgrading

Upgrades from before 0.12 preserve original files. After checking that the new
version and your documents work, optionally remove only unused ManT-specific
files at these old defaults:

Platform Old default location Possible leftovers
Linux ~/.local/share/mant/sources.toml Old source configuration copy
macOS ~/Library/Application Support/ManT/ Configuration, documents, source data and old installation records
macOS ~/Library/Caches/ManT/ Old ManT cache
Windows %APPDATA%\ManT\ Configuration, documents and source data
Windows %LOCALAPPDATA%\ManT\ Old cache and installation records
Windows %LOCALAPPDATA%\Programs\ManT\bin\mant.exe Old executable

Do not delete the whole ~/.local/share/mant/ directory on Linux: it is
still the default data directory. Keep active configuration/data, the current
installation receipt and external tldr clients' caches. Original files, obsolete
caches, old-location receipts, binaries at other locations and manually added
PATH entries are not automatically cleaned up. Review custom directory and PATH
overrides yourself. Cleanup is optional; see the
0.12.0 notes
for the complete migration context.

Run mant --doctor after upgrading. Existing Cargo installations, including
macOS, should update with Cargo:

cargo install mant --version 0.13.0 --locked

Cargo/manual installations do not migrate pre-0.12 storage automatically; follow
the configuration and migration guide.
Public archives cover Linux x64, Linux arm64 and Windows x64; macOS continues
to support Cargo/source installation.

Verify a release artifact

gh attestation verify mant-0.13.0-linux-x64.tar.gz --repo BryanHeBY/ManT

The release workflow produces native archives, a portable manuals archive,
SHA-256 checksums, target-specific CycloneDX SBOMs, Sigstore bundles and license
notices, with tagged-build provenance and SBOM attestations.

Full changelog: v0.12.1…v0.13.0