Repository navigation
fix(studio): block-split long backslash lines without inline lex (#11376) - #11501
Conversation
…lothai#11376) Vend streamdown's blockTokens splitter (vercel/streamdown#608) for Studio chat block boundaries so marked's inline pass is not run during splits. Pin [email protected] to match streamdown's renderer and add regression tests.
069376f to
06a1a17
Compare
|
Rebased onto latest |
… HTML block together
|
Review record for #11501, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#288. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
|
@codex review |
Summary
Fixes #11376. Studio chat block splitting no longer calls marked's full
Lexer.lex(block + inline). Production paths now use a vendoredblockTokenssplitter aligned with vercel/streamdown#608, so a single long line of backslashes (paths, regex, escaped JSON) no longer costs seconds per render.Changes
parse-markdown-blocks.ts(blockTokens + same merge rules as streamdown 2.5; incremental reuse deferred until we bump streamdown)streaming-render-schedule,streaming-markdown, andlatexto the fast splitter[email protected]to match streamdown's nested markedFollow-up
Drop the vendored module once a published
streamdownrelease includes #608.