Skip to content

0.1.1 – 2026-05-22

Choose a tag to compare

@github-actions github-actions released this 22 May 03:19

Release Notes

Changed (breaking, pre-1.0)

  • Split the codebase into a virtual workspace of deep crates. There is no root facade package: command users install the
    mdwright package, while Rust library users depend directly on mdwright-document, mdwright-format,
    mdwright-lint, mdwright-config, mdwright-lsp, or mdwright-math.
  • Moved the executable target into the mdwright package under crates/mdwright. The binary name remains mdwright,
    and CLI behaviour is unchanged.
  • Moved operation methods off Document. Document is now parse/query only: use
    mdwright_format::{format_document, format_source, format_validated} for formatting; use rules.check(&doc) /
    rules.check_with(&doc, opts) for linting; use mdwright_lint::apply_safe_fixes(&doc, &diags) for safe lint fixes.
  • Moved recognition toggles into ParseOptions. FmtOptions now owns formatting policy only; extension, MyST, and
    Pandoc recognition policy belong to document parsing and config resolution. Config files now use [parse.extensions]
    instead of the previous formatter-owned extension table.
  • Formatter entry points over Document now honour the document's parse policy throughout rewrite snapshots,
    verification reparses, semantic signatures, and range-format checkpointing.
  • Document::parse, Document::parse_with_options, render_html, format_source, and the formatter semantic oracles
    are now fallible. mdwright-document contains upstream parser panics and reports them as ParseError; CLI and LSP
    delivery surfaces report controlled parse errors instead of crashing.
  • Removed the old public module-shaped facade for parser, formatter, linter, config, and LSP internals. Component crates
    expose their own narrow APIs, and the mdwright package exposes only command-extension helpers such as
    run_with_rules.
  • Narrowed the pre-1.0 public surface before release. mdwright-lsp::build_service_for_tests, document source-map
    internals (Source, CanonicalSource, OffsetMap, ByteSpan, OriginalSpan), parser tree internals (Tree,
    Node, NodeId, NodeKind), NormalisedLabel, find_attr_trailer_range, and public top-level checkpoint helpers
    are no longer exported. Use Document fact accessors and mdwright_format::CheckpointTable instead.

Architecture

  • mdwright-document owns source coordinates, canonical source mapping, pulldown invocation, parse options, document
    facts, reference/frontmatter/list/code/html inventories, and document queries. Formatter and lint crates consume
    domain facts rather than pulldown parser events.
  • mdwright-math owns pure TeX/math span recognition, renderer conversion helpers, and body normalisation helpers.
  • mdwright-format owns FmtOptions, range formatting, semantic formatter oracles, and the private rewrite-family
    pipeline.
  • mdwright-lint owns diagnostics, lint rules, suppression, standard-rule registry construction, and safe-fix
    application.
  • mdwright-config, mdwright, and mdwright-lsp own configuration interpretation and delivery surfaces without
    leaking TOML, terminal, or editor dependencies into parser/format/lint users.
  • Internal workspace dependencies are versioned as well as path-based so every publishable crate can be packaged.
  • Added a release-oriented cargo xtask production-soak --corpus-root <path> gate that runs parse, lint, format
    validation, idempotence, fmt-check comparison, and aggregate rewrite metrics over a primary documentation corpus and
    representative external Markdown fixtures.
  • Added cargo xtask mdformat-parity to compare mdwright against mdformat on isolated corpus copies and require every
    output difference to be classified as fixed, configured, intentional, upstream-owned, or an open release-blocking bug.
  • Added cargo xtask parser-audit source-position risk gates. The audit now checks cmark-gfm data-sourcepos envelopes
    against mdwright document facts for formatter/lint-owned constructs and fails on unclassified coordinate risks.
  • Added cargo xtask release-evidence --output target/mdwright/release, which aggregates local release-candidate
    evidence into JSON and Markdown reports without wiring costly gates into CI.
  • Added a document-owned GFM extension overlay for URL autolinks, email autolinks, and tagfiltering. Rendering now
    matches cmark-gfm for those extension cases by default, while the bare-url lint still asks authors to make URL
    autolinks explicit with <...> for renderer portability.
  • Added [render] profile = "pulldown" | "cmark-gfm" and mdwright render --render-profile. The default keeps
    pulldown-style HTML output; the cmark-gfm profile matches cmark-gfm spelling for quote escaping, link-destination
    escaping, ordinary GFM tables, task-list checkboxes, and one raw-HTML newline case without changing parser semantics
    or formatter source bytes.
  • Documented the remaining cmark-gfm parser-backend divergences as accepted current-backend constraints: emphasis
    delimiter-stack resolution, a few raw HTML block indentation cases, disabled task-list spec fixtures, and the
    contained upstream parser panic.
  • The wrap pass now treats MkDocs-style !!! / ??? admonition paragraphs as opaque blocks, preventing prose wrapping
    from collapsing the admonition marker and indented body into ordinary paragraph text.
  • Added [fmt] profile = "preserve" | "mdformat". The mdformat profile keeps mdformat's default wrap = keep, uses
    dash bullets, safe repeated-1. ordered-list markers, 70-underscore thematic breaks, and padded GFM tables where
    transactional verification preserves document semantics. Explicit [fmt] keys override profile defaults.
  • Added fmt.tables.style = "compact" | "align" | "preserve" for verified GFM table normal forms. The default compact
    form trims redundant cell padding; align keeps the padded table layout used by the mdformat profile.
  • Fixed dogfood lint false positives for inline-code plural suffixes, jsonc code fences, and MyST directive fences.
  • Reworked formatter canonicalisation around rewrite families with explicit ownership. Inline delimiters and link
    destinations are slot-owned, list markers are marker-owned, table padding is a parent normal form, wrap is terminal,
    and idempotence is now checked by regression and property-law gates.
  • Added mdwright-latex as the TeX math-body component. It owns MathJax-style command vocabulary, Unicode terminal
    layout, and source translation evidence; mdwright-math remains the Markdown math-span recogniser.
  • Added mdwright preview Unicode math rendering and mdwright math --to-unicode|--to-latex source translation.
    Coverage targets common MathJax-style input where Unicode has honest representations; unsupported TeX reports typed
    diagnostics or falls back to source instead of pretending to be browser MathJax.
  • Replaced Unicode-to-LaTeX substitution with a parser-backed source translator in mdwright-latex. Supported Unicode
    math source emits canonical LaTeX; unsupported glyphs, ambiguous accent ownership, and diagram-like source remain
    visible with diagnostics or losses.

Performance

  • Criterion comparison against the pre-factorisation baseline found no representative runtime regression above 10%.
    Formatter benches were flat to low-single-digit changes (parse_plus_format/medium flat; format/corpus/wrap-100
    about 1-2% faster). Lint-only paths improved by roughly 8-13%, while parse-plus-lint moved by about 3-5%. One
    tracing-disabled micro-format bench measured just under 10% slower but stayed below the investigation threshold and
    did not appear in representative parse-plus-format or corpus runs.

Install mdwright 0.1.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/jcreinhold/mdwright/releases/download/v0.1.1/mdwright-installer.sh | sh

Download mdwright 0.1.1

File Platform Checksum
mdwright-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
mdwright-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum