Repository navigation
Releases
libmdf v0.23.1
libmdf v0.23.1 fixes mismatched backgrounds behind tile-chart labels and percentages.
- Keep block fills at the same color intensity as in-bar label backgrounds, removing the darker text rectangles in the default terminal theme.
- Correct background decoding for indexed theme colors whose palette numbers overlap basic ANSI color codes.
- Add regression coverage across every built-in theme, colored and monochrome charts, and whole and fragmented input, including exact sink/trace parity.
- Update ANSI, HTML and slide-deck golden outputs.
The public C API is unchanged; shared-library ABI remains 7.
SDK and CLI archives cover x86_64, aarch64 and armhf Linux with glibc/musl, plus arm64 Darwin. Source, Lua archive, rockspec and source rock are included. Use the accompanying SHA-256 manifest to verify downloads.
The clean local release gate passed 102 Debug checks, 61 native Release checks, 19 Valgrind checks, both AFL smoke gates, full ANSI/HTML/stream parity, and complete archive/consumer verification. Cross-target consumers were linked and inspected; cross-target runtime execution remains deferred under project policy.
libmdf v0.23.0
libmdf v0.23.0 adds on-demand paging of large Markdown and text/log files with a bounded, configurable rendered-content cache.
- Keep the live parser for forward navigation and recover evicted content through seekable input.
- Preserve document-wide search numbering, cyclic navigation, seam-spanning matches, and the viewed passage across resizing.
- Expose cache configuration in C and Lua, and add seekable-source C receiver methods.
- Return pager cancellation when the restored Ctrl-C handler returns or ignores SIGINT.
- Preserve literal NBSP and plain intraword underscores, with regression-backed parity exceptions for Go differences.
- Replace the oversized README with focused guides and complete public C API comments.
The default pager cache holds 1 MiB of rendered content and can be configured down to 64 KiB. Named files and seekable sources can be much larger than the cache.
Breaking change: the older forward-only mdf_pager_source / receiver pager_source API buffers at most 1 MiB of total input and rejects larger input. For large callback inputs, use mdf_pager_seekable_source or the receiver pager_seekable_source method. Shared-library ABI remains 7.
SDK and CLI archives cover x86_64, aarch64 and armhf Linux with glibc/musl, plus arm64 Darwin. Source, Lua archive, rockspec and source rock are included. Use the accompanying SHA-256 manifest to verify downloads.
The clean local release gate passed 102 Debug checks, 61 native Release checks, 19 Valgrind checks, both AFL smoke gates, full ANSI/HTML/stream parity, and final archive/consumer verification. Cross-target consumers were linked and inspected; cross-target runtime execution remains deferred under the project policy.
v0.22.0
Pending Markdown words now have bounded retention, and C and Lua callers can
feed literal text without interpreting Markdown syntax.
- Add configurable per-word storage: 4 KiB in memory by default, configurable
up to 64 KiB. Larger words use a temporary file capped at 1 MiB. Disabling
spooling retains only the word's configured memory prefix. Storage limits
never force an unfinished rendering decision. - Add
set_word_buffer,write_literal, andescape_markdownto the C API
and corresponding Lua surfaces. Literal feeds retain normal layout and word
boundaries; the escape helper returns a materialized Markdown string. - Stream nested emphasis at word boundaries. Once content has emitted,
unmatched opening markers are not restored; backslash-escape a marker when
it should appear literally. - Fix fragmented link-label escapes, emphasis ordering, file-backed styling,
spool read failures, and cleanup after source or parser failures. - Reduce pager flicker by overwriting rows instead of clearing the display.
- Support
BINDIRinstallation overrides alongsidePREFIXandDESTDIR,
and prepare the pinned musl toolchain before configuring the CLI build. - Refresh CLI copyright branding, API hover comments, and documentation.
The shared-library ABI remains 7. The release includes SDK and CLI archives
for all seven supported targets, the source archive, Lua 5.5 artifacts, and the
complete SHA-256 checksum inventory.
libmdf v0.21.0
OSC8 automatic detection now recognizes TERM=xterm and xterm-* when specific terminal identifiers are absent. This fixes disabled hyperlinks in ordinary xterm-compatible terminal sessions, including SSH sessions without forwarded desktop terminal hints.
- Covers the C API, native CLI, Lua facade and Lua CLI.
- Preserves explicit OSC8 disable controls, known terminal hints and escape-free ordinary pipe output.
- Shared-library ABI remains 7.
The release passed clean native and Release tests, Valgrind, fuzz smoke, full ANSI/HTML/streaming parity, all seven target builds and complete archive verification.
Downloads include SDK and CLI archives for the declared Linux and Darwin targets, source and Lua packages, plus a complete SHA-256 checksum manifest.
libmdf v0.20.0
Adds automatic ANSI/HTML table fallback to row streaming at 64 KiB or 1,024 retained rows, preserving the table header and settled ANSI column widths.
Adds cooperative pager cancellation, receiver pager methods, explicit text/Markdown selection, and search across hard wraps. Use cmdf --pager --pager-format text application.log for plain-text log viewing. Lua callers can provide should_cancel to mdf.pager.
Breaking C API change: mdf_pager_file and mdf_pager_source require a final cancellation-control pointer; pass NULL to disable cancellation. The shared-library ABI advances from 6 to 7.
libmdf 0.19.0
libmdf 0.19.0 preserves visible terminal URLs across natural wraps when the right margin is zero, including styled URLs, lists and scheme-relative destinations. Cursor placement and sink/trace decisions remain consistent across fragmented input.
Native C++ API tests and golden producers use the pinned lifecycle build graph. Repository references and copyright attribution now identify C89 systems.
The public C ABI remains 6. OSC8 stays optional; tmux hyperlink requirements are documented.
The release ships SDK and CLI archives for x86_64, aarch64 and armhf GNU/musl Linux, plus arm64 Darwin, together with source and Lua source distributions. Cross-target artifacts receive build/link and binary inspection proof; execution follows the declared host coverage.
The clean release gate passed 83 native checks, 45 native Release checks, four Valgrind checks, both AFL++ smoke checks, full ANSI/HTML/streaming parity, and complete source/binary/Lua archive verification, including exports, relocation, licenses and privacy.
Linux artifacts use the pinned Bootlin stable-2026.08-1 collections. The Lua facade targets Lua 5.5.1 and the public shared libmdf API. Embedded JetBrains Mono fonts retain their OFL notices. Linux CLI binaries include their C runtime statically; SDK consumers use the selected target runtime.
libmdf 0.18.0
Expose the complete theme foreground palette through the public C89 API.
- All 19 semantic color slots: H1–H6, emphasis/strong, inline/block code, quotes, lists, links, thematic breaks and tables.
- Retrieve the configured palette with
renderer->get_theme_palette(renderer, &palette)ormdf_get_theme_palette. - Look up a named palette with
mdf_theme_get_palette, or a single heading foreground withmdf_theme_heading_foreground. - Foreground-only ANSI strings, caller-owned buffers, no lookup allocation or terminal/environment detection.
- Shared-library ABI remains 6. The receiver method is appended after the released layout, preserving existing member offsets.
Includes SDK and CLI archives for all seven supported targets, source archives, Lua packages and SHA-256 checksums.
libmdf v0.17.0
Lua callback errors and allocation failures now return through native cleanup. Materialized result copying keeps the renderer and its native output alive while Lua garbage-collection finalizers run.
- Protect complete source, sink and trace callback frames, including argument creation, and preserve the original Lua error object.
- Retain selected font configuration and token bytes across table mutation and garbage collection.
- Require actual NUL-free strings for C-string arguments; length-aware byte fields retain their binary semantics.
- Remove the unused-stdin race from Lua destination-policy tests.
- Use owning C89/C99 compile commands for editor discovery, compile public headers independently, and support cold native-only editor checks with Lua disabled.
- Document lifecycle ownership in c89systems/cpkt and the existing shared toolchain cache.
The public native C API and shared-library ABI remain unchanged at ABI 6. The existing Lua API names and surface are preserved.
Artifacts include SDK and CLI packages for all seven targets, source, the Lua facade archive, rockspec, source rock and a complete SHA-256 manifest.
Validation: clean local make release passed 75 native tests, 37 Release tests, four Valgrind checks, two AFL/fuzz checks, full ANSI/HTML/stream parity, and final archive verification. Native Linux consumers and CLIs executed; ARM and Darwin consumers passed link and relocation checks, with execution deferred on this host.
libmdf v0.16.0
C89 Systems HTML branding is now available through libmdf, cmdf and the Lua facade.
- Use
cmdf --html --c89 input.mdorcmdf -o output.html --c89 input.mdfor the C89 header, footer, background logomark and section navigation, styled after the Lights Out page. - Self-contained HTML embeds the C89 SVGs. External assets can be written beside the regular font with
--html-dump-font. - Set
mdf_options.html_c89in C, orc89in the Lua options. Branded pages default to one-dark; explicit theme selection is preserved. - Release targets now build in
build/<target>-release. GNU native Release tests and packaging share one producer. Source delivery uses inventory and byte verification; the separatepackage-source-smoketarget is removed.
ABI change: mdf_options gains html_c89; the shared-library ABI advances from 5 to 6. Rebuild consumers against the new headers and library.
Artifacts include SDK and CLI packages for seven targets, the source archive, Lua facade archive, rockspec and source rock, plus SHA-256 checksums.
Validation: a clean local make release passed formatting, 73 native tests, 37 Release tests, Valgrind, AFL/fuzz, full ANSI/HTML/stream parity, and final archive verification. Cross-target consumers passed link and relocation checks; ARM and Darwin consumer execution was deferred on the Linux x86_64 release host.
v0.15.0
Fix Markdown link destinations containing balanced or escaped parentheses, including DOI links, across streamed input.
Rework build, test, benchmark, packaging and release workflows around native Make, CMake and CTest producers. Final releases require a verified signed commit on the default branch, an exact lightweight tag, a clean local build and verification of the shipped artifacts.
The public C API and shared-library ABI remain unchanged (ABI 5).
Artifacts include SDK and CLI archives for x86_64, AArch64 and ARM hard-float Linux with GNU and musl runtimes; arm64 Darwin; source; and Lua facade/source-rock packages. The checksum manifest covers all 18 payloads.
Validation includes 69 native tests, Valgrind, AFL++ smoke and failure gates, full ANSI/HTML/streaming parity, 34 source-reconstruction Release tests, and final package, privacy, relocation and installed-consumer checks. Cross-target packages receive build/link and target-format inspection; execution follows the supported native lanes.