remend@1.3.1
vercel/streamdownremend@1.3.1Aug 24, 2026by github-actions[bot]
AI Summary
This patch release fixes iOS compatibility issues and improves performance in code-block scanning by implementing linear-time position lookup.
Key Highlights
- Fixed crash on iOS 16.0-16.2 / Safari < 16.3 by removing unsupported lookbehind assertion
- Improved handling of italic emphasis when closing asterisk is followed by word text
- Fixed quadratic code-block scanning by implementing linear-time position lookup
Full Release Notes
### Patch Changes - a99d675: Fix crash on iOS 16.0-16.2 / Safari < 16.3 by removing the lookbehind assertion from the single-tilde escape pattern (#519). JSCore on those versions doesn't support lookbehind (`(?<=...)`) and throws a `SyntaxError` while the module is being evaluated, before any user code runs, so there is no way to catch it. The preceding word character is now captured and written back in the replacement instead. - 9f96409: Preserve complete italic emphasis when a closing asterisk is followed by word text. - 8093f2a: Treat LaTeX paren and bracket math as protected math contexts during emphasis completion. - 57c3089: Fix quadratic code-block scanning. `isInsideCodeBlock` now builds a linear-time position lookup (cached per text) instead of rescanning the whole prefix on every call, so handlers that probe many positions no longer degrade quadratically. Repairing an unclosed, bracket-heavy 58k-character code block drops from ~915ms to ~0.4ms per call.