mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-17 13:50:25 +01:00
Write a line where em shares a delimiter run with strong in time linear in its mark runs
This commit is contained in:
@@ -908,6 +908,18 @@ fine.
|
||||
A loop retrying an input until a fallback spells it refuses the pass taking no fallback, so its
|
||||
termination is the loop's own check.
|
||||
|
||||
## A line reads back at most 32 times, then takes back every emphasis run
|
||||
|
||||
2026-10-30, the maintainer. Goals 9 and 1. Valid while a writer finds a misread run only by reading
|
||||
the line back.
|
||||
|
||||
The lossless and portable writers read a line back after each fallback, and the sweep takes back
|
||||
the misread pairs it can prove fall together. Where a strong opener captures the `*` em leaves over,
|
||||
the sweep can't predict it, so one pass took back one strong, and a line of 1000 such repeats took
|
||||
33 seconds. After 32 passes the line takes back every em, strong and strike run at once: the
|
||||
lossless writer carries every node holding one, and the portable writer drops those marks. That
|
||||
line keeps fewer marks than the pass-by-pass result would, in exchange for time linear in the line.
|
||||
|
||||
## Readers scan by index
|
||||
|
||||
2026-08-30, the kept scan 2026-09-18, the maintainer. Goal 9. Valid while the pipeline persona
|
||||
|
||||
@@ -550,3 +550,18 @@ Read most (opens and searches):
|
||||
- `src/markdown/portable/adf-to-portable-markdown.test.ts` 3
|
||||
- `README.md` 2
|
||||
- `ci.sh` 2
|
||||
|
||||
## Reading cost, chunk 13332c44ccd0, finished 2026-10-30T15:27:59Z
|
||||
|
||||
132270 new input tokens before the first commit.
|
||||
|
||||
Read most (opens and searches):
|
||||
|
||||
- `todo.md` 10
|
||||
- `src/markdown/emit/inline-line.ts` 4
|
||||
- `src/markdown/emit/line-escaping.ts` 4
|
||||
- `src/markdown/portable/inline-reduction.ts` 4
|
||||
- `CHANGELOG.md` 2
|
||||
- `docs/score-anchors.md` 1
|
||||
- `src/markdown/emit/inline-line.test.ts` 1
|
||||
- `src/markdown/portable/inline-reduction.test.ts` 1
|
||||
|
||||
Reference in New Issue
Block a user