3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-17 21:55:44 +01:00

Emit a line mixing em, strike and strong in time linear in its mark runs

This commit is contained in:
2026-10-29 23:57:32 +01:00
committed by Lillem4n
parent c34168bbc6
commit 47b990feea
8 changed files with 231 additions and 100 deletions
+6 -24
View File
@@ -12,15 +12,14 @@
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 158 | 0.3.0 | | defect | **Emit a line mixing em, strike and strong in time linear in its mark runs, in `adfToLosslessMarkdown` and `adfToPortableMarkdown`.** | 4 | 1 | 2 | 5 | 5 | 9 by 3 | 7.8 |
| 160 | 0.3.0 | 158 | | **Make the block-text tree and the batched mark fallbacks read as easily as the code before items 33 and 109, with no switch only tests use in production signatures and one rule for which runs lose their mark.** | 3 | 1 | 2 | 4 | 5 | code health by 5 | 13.1 |
| 160 | 0.3.0 | | | **Make the block-text tree and the batched mark fallbacks read as easily as the code before items 33 and 109, with no switch only tests use in production signatures.** | 3 | 1 | 2 | 4 | 5 | code health by 5 | 13.1 |
| 150 | 0.3.0 | | decision | **Read `adfToHtml`'s HTML in `htmlToAdf` as a browser serializes it too — a raw `"` in text, ` `, `\r\n` line endings — so a page's `innerHTML` or a form post reads back.** | 2 | 2 | 2 | 4 | 4 | 6 by 5 | 5.0 |
| 115 | 0.3.0 | | defect | **Build text holding no `border` mark in `losslessMarkdownToAdf`, and have `adfToLosslessMarkdown` carry text holding one.** | 2 | 1 | 2 | 3 | 3 | 4 by 3 | 4.6 |
| 91 | 0.3.0 | | | **Spell an emphasis once across the code spans, an emphasis or link once across the hard breaks, dates, emoji, inline cards, mentions and statuses between two nodes it marks, and an emphasis across inline media, in both writers.** | 3 | 2 | 2 | 5 | 5 | 6 by 6 | 3.6 |
| 133 | 0.3.0 | | decision | **Write mentions, emoji, dates, statuses and inline cards as semantic HTML in `adfToHtml` and read them back in `htmlToAdf`, in place of the carry element.** | 2 | 2 | 2 | 4 | 4 | 6 by 3 | 3.0 |
| 132 | 0.3.0 | | | **Write tables as `<table>` in `adfToHtml` and read them back in `htmlToAdf`, in place of the carry element.** | 2 | 2 | 2 | 4 | 5 | 6 by 4 | 2.4 |
| 73 | 0.3.0 | 91, 115, 132, 133, 150, 158, 160 | | **Announce the package where someone needing an ADF converter already reads: JRACLOUD-77436, the Atlassian developer community and Stack Overflow's ADF-to-markdown questions.** | 1 | 2 | 2 | 3 | 2 | 3 by 8 | 16.9 |
| 72 | 0.3.0 | 91, 115, 132, 133, 150, 158, 160 | decision | **Re-create `gitea.larvit.se/larvit/adf-codec` as a read-only pull mirror of GitHub, its issues and Actions off and its description pointing at GitHub.** | 1 | 2 | 1 | 2 | 1 | 3 by 1 | 2.5 |
| 73 | 0.3.0 | 91, 115, 132, 133, 150, 160 | | **Announce the package where someone needing an ADF converter already reads: JRACLOUD-77436, the Atlassian developer community and Stack Overflow's ADF-to-markdown questions.** | 1 | 2 | 2 | 3 | 2 | 3 by 8 | 16.9 |
| 72 | 0.3.0 | 91, 115, 132, 133, 150, 160 | decision | **Re-create `gitea.larvit.se/larvit/adf-codec` as a read-only pull mirror of GitHub, its issues and Actions off and its description pointing at GitHub.** | 1 | 2 | 1 | 2 | 1 | 3 by 1 | 2.5 |
| 153 | 0.4.0 | | question | **Decide whether `src/markdown/` root may import `emit/`, `parse/` or `portable/`, and hold the answer in `.oxlintrc.json` and §The source parts by ADF and format.** | 1 | 2 | 2 | 3 | 2 | code health by 3 | 26.2 |
| 156 | 0.4.0 | | | **Stop a leg's container when its script is interrupted, so Ctrl-C ends `ci.sh` or `mutation-tests/run.sh` at once.** | 1 | 2 | 1 | 2 | 1 | code health by 2 | 20.9 |
| 128 | 0.4.0 | | | **Pin the portable flavour's block reading and writing with tests: callout titles past one line, a link beside other marks in a title, the nesting limit of callouts and task lists, refusals inside tasks and their paths, and empty or non-paragraph tasks.** | 2 | 1 | 1 | 2 | 3 | code health by 3 | 19.6 |
@@ -70,31 +69,14 @@
## Details
### 158. Emit a line mixing em, strike and strong in time linear in its mark runs, in `adfToLosslessMarkdown` and `adfToPortableMarkdown`.
Item 33 batched a line's fallbacks, but two guards keep nested emphasis at one run per pass. A
paragraph repeating text `un` beside `-r` marked em and strong takes 13 seconds at 1000 repeats in
either writer. `(` marked em, strike and strong beside a mention takes 27 seconds in the portable
one. `mayFlank`'s same-character guard (`line-escaping.ts`) is needed: without it
`[{em,'-'},{'0'},{em+strong,'un'},{'0'}]` writes other markdown. `dropsAlone`'s innermost-mark
requirement (`inline-reduction.ts`) has no known counterexample, but relaxing it alone leaves
lossless, the three-mark line and the chain below quadratic. A chain of `z` then strike `(b` beside
em `(b`, repeated, needs one pass per run, since each run's drop decides whether the next run's
delimiter flanks: linear there needs a reading that settles runs left to right in one pass. The
every-against-first properties in `inline-line.test.ts` and `inline-reduction.test.ts` pin every
other guard. The seats find `emitLine` and `unspellableRuns` hard: make both easier to read.
Found by the stability review of item 33, 2026-10-29.
### 160. Make the block-text tree and the batched mark fallbacks read as easily as the code before items 33 and 109, with no switch only tests use in production signatures and one rule for which runs lose their mark.
### 160. Make the block-text tree and the batched mark fallbacks read as easily as the code before items 33 and 109, with no switch only tests use in production signatures.
PR #106's paired ruling read worse than c7bbb04: both seats ruled Locality and Shape worse, the
maintainer chose to merge it and file this. Make each place they named easier to read:
`writtenText` and `Shape` in `block-text.ts` (a stack walk and eight hand-kept measures),
`FallbacksPerPass` threaded through `emitInlineLine` and `reduceInline` only for two properties,
`givesUp` in `line-escaping.ts` and `dropsAlone` in `inline-reduction.ts` deciding one pass's drops
twice, `holdsOnlyRuleCharacters` holding BlockText's rule in the grammar, and `markerOpening`
repeating the marker regexes' `[`. No output may change, and both items' timings must hold. After
item 158, which rewrites the same drop rules.
`holdsOnlyRuleCharacters` holding BlockText's rule in the grammar, and `markerOpening` repeating
the marker regexes' `[`. No output may change, and the timings of items 33, 109 and 158 must hold.
### 150. Read `adfToHtml`'s HTML in `htmlToAdf` as a browser serializes it too — a raw `"` in text, `&nbsp;`, `\r\n` line endings — so a page's `innerHTML` or a form post reads back.