unstale

npm / remend

remend

What changed in remend 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-24.

2 breaking3 new APIs and options5 performance31 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

remend 141 changes

Breaking changes 2

  • The built-in handlers controlled by bold, italic, boldItalic, and strikethrough are now one emphasis handler at priority 30; custom handlers ordered against old priorities may need new ones.

    1.5.0release notes

  • Removes CJS builds.

    1.2.0release notes

New APIs and options 3

  • Adds opt-in inline KaTeX completion that turns $formula into $formula$; it defaults to false to avoid ambiguity with currency symbols.

    1.3.0release notes

  • Adds an option enabled by default that escapes a single ~ between word characters to prevent false strikethrough rendering; it can be disabled with { singleTilde: false }.

    1.3.0release notes

  • remend is now configurable.

    1.0.2release notes

Performance 5

  • Completed-link searches are skipped for brackets already known to be literal, avoiding quadratic work on unmatched bracket prefixes before a completed link.

    1.5.0release notes

  • Messages with many skipped delimiter openers avoid quadratic emphasis gating through precomputed lookups and skipping disabled or overlength runs before gating.

    1.5.0release notes

  • Unmatched opening brackets followed by many completed links no longer cause quadratic emphasis processing, including when link and image healing are disabled.

    1.5.0release notes

  • A shared single-pass scanner replaces per-character rescans that made healing quadratic on delimiter-heavy input.

    1.4.0release notes

  • Uses a cached linear-time position lookup instead of rescanning the whole prefix on every call, avoiding quadratic degradation when probing many positions.

    1.3.1release notes

Fixes and other changes 31

  • Emphasis healing now follows CommonMark and GFM parsing, including opener scope, line boundaries, code spans, and literal markers.

    1.5.0release notes

  • Unfinished links and images are completed only in the final paragraph, list item, heading, or table row; earlier unclosed brackets no longer affect later blocks.

    1.5.0release notes

  • A dash starting a new list item after a list item or block quote is no longer given a zero-width space that displayed as a stray dash on the preceding line.

    1.5.0release notes

  • Public optional props accept possibly-undefined values forwarded to Streamdown and remend without type errors.

    1.5.0release notes

  • Single tildes inside URLs and HTML tag attributes are no longer escaped, preserving working addresses such as https://example.com/a~b.

    1.5.0release notes

  • Fence and inline code detection follows CommonMark, including tilde fences, fences inside block quotes and list items, CRLF line endings, and multi-backtick spans; content inside code is not healed as prose.

    1.4.0release notes

  • Double underscores are counted per maximal run with flanking rules, preventing identifiers containing __ from inventing or swallowing emphasis closers.

    1.4.0release notes

  • The incomplete-HTML-tag handler skips candidates inside math blocks and continues to later candidates, avoiding truncation of math expressions while still stripping genuine incomplete tags.

    1.4.0release notes

  • Healing is idempotent: healed output re-heals to itself.

    1.4.0release notes

  • Incomplete images during streaming are replaced with ![alt](streamdown:incomplete-image) instead of being removed entirely.

    1.4.0release notes

  • Text-only link mode resolves every unmatched bracket in one call.

    1.4.0release notes

  • Removing the lookbehind assertion prevents a SyntaxError during module evaluation on these JavaScriptCore versions.

    1.3.1release notes

  • Preserves complete italic emphasis when a closing asterisk is followed by word text.

    1.3.1release notes

  • LaTeX paren and bracket math are treated as protected contexts during emphasis completion.

    1.3.1release notes

  • Fixes block KaTeX completion when streaming produces a partial closing $.

    1.3.0release notes

  • Emphasis completion handlers no longer close bold, italic, or strikethrough markers inside complete inline code spans, preventing stray markers outside the backticks.

    1.2.2release notes

  • Fixes stray asterisks stemming from Mermaid diagrams.

    1.2.1release notes

  • Repairs handling of comparison operators in list items.

    1.2.0release notes

  • Handles incomplete HTML tags.

    1.2.0release notes

  • Fixes whitespace-bound asterisks.

    1.2.0release notes

  • Fixes incorrect bold-italic nesting auto-completion.

    1.0.2release notes

  • Fixes extra underscores in code block output.

    1.0.2release notes

  • Handles a code block followed by incomplete inline code.

    1.0.2release notes

  • Improves support for horizontal rules.

    1.0.2release notes

  • Prevents adding a trailing underscore for images with underscores in their URL.

    1.0.2release notes

  • Fixes incorrect completion of inline code containing $$.

    1.0.2release notes

  • Prevents asterisks inside math blocks from being incorrectly treated as italic markers.

    1.0.2release notes

  • Closes nested underscore italic before bold.

    1.0.2release notes

  • Prevents adding closing markers to overlapping bold and italic.

    1.0.2release notes

  • Fixes setext heading issues.

    1.0.2release notes

  • Fixes trailing space issues.

    1.0.2release notes