← Back to Pull requests

ndg-commonmark: keep anchor links that hold only an element #287

Merged
KiaraGrouwstra merged 3 files (33 lines) on Sep 25, 2026 17:29 UTC
View on GitHub
KiaraGrouwstra KiaraGrouwstra commented on Sep 23, 2026 09:06 UTC
Author

process_empty_auto_links adds humanized text to an <a href="#..."> that has no text. A link that holds only an image also has no text, so the processor adds text after the image:

<!-- input -->
<a href="#fig-example"><img src="example.png" alt="Example"></a>
<!-- output -->
<a href="#fig-example"><img src="example.png" alt="Example">Fig Example</a>

Now the processor adds text only when the link has no child element. [](#anchor) and {{ANCHOR}} links do not change. The PR adds a regression test.

Assisted-by: Claude:claude-opus-5-5

https://claude.ai/code/session_01BgTtwafRtA5XxCu4DSwHwt

edit: the CI failure seems a regression on main

Diff: 33 lines (+32 / -1) across 3 files Reviewer: NotAShelf Review duration: 3383m
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.47) × (1 − Review Confidence (0.73)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 33 lines diff across 3 files
0.47
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.61 · 1 substantive comment(s)
0.61
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
72%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.211
Wip Merged wip_merged
0.150
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
3 items
NotAShelf NotAShelf approved these changes on Sep 25, 2026 17:29 UTC
Approved Reviewer

Approved these changes.

NotAShelf NotAShelf commented on Sep 25, 2026 17:30 UTC
Contributor

Thanks. I must've missed the CI issue somehow, I'll address it shortly.

Reviewers
Assignees
KiaraGrouwstra KiaraGrouwstra
Labels
risk: low confidence: 72.9% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 47% (MEDIUM) · Higher = larger blast radius
47%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 72.9% · Lower = rushed or shallow review
72.9%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 12.7% · Safe to merge
12.7%
Repository