Repository navigation
Commit 6505ac1
fix(docs): pin the fumadocs-core peek omission that encodes markdown as entities (#281)
`fumadocs-core`'s `defaultStringifier` wraps every mdast-util-to-markdown
serializer handler through `modHandler` and does not carry the handler's `peek`
onto the wrapper. `containerPhrasing` uses `Handle.peek` to read the next
sibling's first character without side effects; with it missing, the lookahead
invokes that sibling's full handler and leaves `attentionEncodeSurroundingInfo`
set from node N+1 for the loop to apply to node N.
The result reached readers: 67 HTML numeric character references in
`/llms-full.txt` and in each of the 79 per-page `/llms.mdx` bodies — files whose
entire audience will not run them through an HTML parser — and 4 of 661 markdown
link targets delivered malformed. Two of those also hid from the absolute-URL
rewrite in `llms-full.txt/route.ts`, whose pattern needs a literal closing
parenthesis, so they were served relative.
Route A as decided on the card: pin the upstream one-liner through
`pnpm.patchedDependencies` and fix the producer, so both consumers are repaired
together and no consumer file is touched. Measured at base `50aacb9`: references
67 to 0 in both outputs, malformed targets 4 to 0 of 661, absolute site targets
560 to 562, page membership and order byte-identical.
The patch applies on a wiped `--frozen-lockfile` install, and both failure modes
were demonstrated: a perturbed anchor makes install exit 1, and removing the pin
puts the defect back at exactly the baseline figures.
The defect is present in 16.15.8 as well as the installed 16.8.12, so upgrading
is not a fix. The pin is keyed to 16.8.12 and will not apply to any other
version, which makes #239 a regeneration task.
Fixes #197
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ChPQM8jamxLUfUAxwFpJ8S1 parent d725081 commit 6505ac1
3 files changed
Lines changed: 103 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
| 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 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments