Repository navigation
Commit b83cd76
fix(scripts): collect TypeScript fences opened inside a blockquote (#7100)
`scanFences` anchored a fence opener on leading spaces and tabs only, so a
fence opened inside a Markdown blockquote carried a `> ` prefix the anchor
never matched. The block was never collected and the gate compiled nothing
for it, with no diagnostic: an uncollected block appears in no count and its
page still reports as covered.
The opener now tolerates a blockquote prefix and carries the opener's quote
depth through the rest of the walk — the search for the closing fence reads
candidates at that same depth, and body lines are stripped of that many
markers before reaching the compiler. Depth 0 takes an identity path that
returns the line unchanged byte for byte, so every unquoted fence in the
corpus scans exactly as before.
Measured over the gate's own 224-document population: 773 -> 774 collected
blocks, nothing dropped. The one newly-visible block compiles.
Claude-Session: https://claude.ai/code/session_012wwHa4aaFybxXrfmfHioDM
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2c3cd1b commit b83cd76
3 files changed
Lines changed: 137 additions & 3 deletions
File tree
- .changeset
- scripts
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
119 | 186 | | |
120 | 187 | | |
121 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
557 | 582 | | |
558 | 583 | | |
559 | 584 | | |
| |||
576 | 601 | | |
577 | 602 | | |
578 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
579 | 610 | | |
580 | 611 | | |
581 | 612 | | |
| |||
584 | 615 | | |
585 | 616 | | |
586 | 617 | | |
587 | | - | |
| 618 | + | |
588 | 619 | | |
589 | 620 | | |
| 621 | + | |
590 | 622 | | |
591 | 623 | | |
592 | | - | |
| 624 | + | |
593 | 625 | | |
594 | 626 | | |
595 | 627 | | |
| |||
606 | 638 | | |
607 | 639 | | |
608 | 640 | | |
609 | | - | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
610 | 645 | | |
611 | 646 | | |
612 | 647 | | |
| |||
0 commit comments