Link fix
A stray [ damages the text after it
BeforeRemend pairs it with text in later paragraphs.
AfterLinks complete only in the current block.
Text from the model
Before
After
Two pull requests I sent to Streamdown, Vercel's component for showing streaming AI answers: a link fix and a speed-up.
A stray [ damages the text after it
Repair only the end of the message
| Speed | Answer | Before | After | Change |
|---|---|---|---|---|
| 200 tokens/s | Mixed | 16.4 s | 15.1 s | −7.9% |
| 200 tokens/s | Code-heavy | 14.5 s | 14.7 s | noise |
| 200 tokens/s | Table-heavy | 20.7 s | 20.2 s | noise |
| 1,000 tokens/s | Mixed | 7.0 s | 6.4 s | −8.4% |
| 1,000 tokens/s | Code-heavy | 6.7 s | 5.9 s | −11.4% |
| 1,000 tokens/s | Table-heavy | 10.6 s | 10.7 s | noise |