fix: normalize line endings for inline parsing #4283
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 204 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.318
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4283"
general
weight: 0.35
UziTech
Marked version: 18.3.0 (
masterat393e1dc2)Markdown flavor: CommonMark / GitHub Flavored Markdown
Description
parseInlinemisses hard breaks in CRLF and CR input and leaves carriage returns in code spans. Its default lexer enters inline tokenization directly, bypassing the line-ending normalization used by block parsing.Normalize CRLF and CR at
Lexer.lexInlineusing the existing block lexer rule. The new tests cover hard breaks, GFMbreaks, and code spans with LF, CRLF, and CR.The demo shows the expected output through its block parser. Hard break · Code span
CommonMark line endings · Code spans
Contributor
npm ciandnpm testpass on Node 26.13.1 (2,053 spec tests and 285 unit tests, including build, UMD/CJS, types, and lint).npm ci, build, unit, spec, and CJS checks also pass on Node 20.20.2 and 27.0.0-alpha.0.1.1.Committer
Prepared with Codex assistance.