# What changed in remend

> 14 changes in remend 1 from its official release notes, upgrade guides and advisories: 2 new APIs and options. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/remend/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## remend 1

### New APIs and options

- Adds opt-in inline KaTeX completion that turns `$formula` into `$formula$`; it defaults to false to avoid ambiguity with currency symbols. (1.3.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.3.0)
- 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.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.3.0)

### Performance

- A shared single-pass scanner replaces per-character rescans that made healing quadratic on delimiter-heavy input. (1.4.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.4.0)
- 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.1) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.3.1)

### Fixes and other changes

- 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.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.4.0)
- Double underscores are counted per maximal run with flanking rules, preventing identifiers containing `__` from inventing or swallowing emphasis closers. (1.4.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.4.0)
- 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.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.4.0)
- Healing is idempotent: healed output re-heals to itself. (1.4.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.4.0)
- Incomplete images during streaming are replaced with `![alt](streamdown:incomplete-image)` instead of being removed entirely. (1.4.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.4.0)
- Text-only link mode resolves every unmatched bracket in one call. (1.4.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.4.0)
- Removing the lookbehind assertion prevents a SyntaxError during module evaluation on these JavaScriptCore versions. (1.3.1) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.3.1)
- Preserves complete italic emphasis when a closing asterisk is followed by word text. (1.3.1) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.3.1)
- LaTeX paren and bracket math are treated as protected contexts during emphasis completion. (1.3.1) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.3.1)
- Fixes block KaTeX completion when streaming produces a partial closing `$`. (1.3.0) — [release notes](https://github.com/vercel/streamdown/releases/tag/remend%401.3.0)
