mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-19 06:35:44 +01:00
Write strike as HTML in adfToHtml and read it back in htmlToAdf
This commit is contained in:
+7
-2
@@ -489,6 +489,10 @@ A sixth panel (2026-11-05, three readers in the same roles) picked each of these
|
||||
- a cell's attributes as `<td colspan="2" rowspan="2" style="background-color:#fffae6" data-colwidth="120,80">`,
|
||||
over `data-*` for all four.
|
||||
|
||||
A seventh panel (2026-11-14, three readers in the same roles, after a reader panel expected `<s>` or
|
||||
`<del>`) picked `<del>old</del>` for a `strike` mark, 3 of 3, over `<s>` and over a `<span>` styled
|
||||
`text-decoration:line-through`: its name says what the text is, and GFM's renderers write it for `~~`.
|
||||
|
||||
## `htmlToAdf` also reads the dialect as a browser serializes it
|
||||
|
||||
2026-10-28, the maintainer. Goal 6. Valid while a viewer/editor app may show `adfToHtml`'s HTML in a
|
||||
@@ -1289,9 +1293,10 @@ the copy is refused as `unmappable-html` rather than saved. They expected:
|
||||
`<li data-state="DONE" data-local-id="…"><input type="checkbox" checked disabled> Write the spec</li>`.
|
||||
A `blockTaskItem` is an `<li>` of two `<p>`, a nested list an inner `<ul>`, and an empty item
|
||||
an `<li data-state="TODO">`.
|
||||
- The `strike` mark in Emphasis and strikethrough as `<s>relay</s>` or `<del>relay</del>`.
|
||||
- The `strike` mark in Emphasis and strikethrough as `<s>relay</s>` or `<del>relay</del>`, which
|
||||
`adfToHtml` writes as `<del>` (§The HTML dialect).
|
||||
|
||||
`todo.md` items 134 and 141 will write these; their writer panels pick the spelling with these
|
||||
`todo.md` item 134 will write the rest; its writer panel picks the spelling with these
|
||||
expectations as input. The Date row drew 1 of 3 not reasonable, so four more readers (bot,
|
||||
reader of the markdown, export/indexing, viewer/editor) read it, and 5 of 7 found it reasonable.
|
||||
`adfToLosslessMarkdown` keeps writing `!adf:date{timestamp=1756080000000}`. The two who rejected
|
||||
|
||||
@@ -77,7 +77,7 @@ An un*real*istic goal.
|
||||
`adfToHtml`, round-trip holds:
|
||||
|
||||
```html
|
||||
<p>Read the <em>manual</em> before <strong>wiring</strong> the <span class="adf-carry" data-adf="{"marks":[{"type":"strike"}],"text":"relay","type":"text"}">relay</span>.</p>
|
||||
<p>Read the <em>manual</em> before <strong>wiring</strong> the <del>relay</del>.</p>
|
||||
<p>An un<em>real</em>istic goal.</p>
|
||||
```
|
||||
|
||||
|
||||
@@ -1093,3 +1093,20 @@ Read most (opens and searches):
|
||||
- `src/html/emit/adf-to-html.ts` 3
|
||||
- `src/index.ts` 3
|
||||
- `CHANGELOG.md` 2
|
||||
|
||||
## Reading cost, chunk 19fae36f9c33, finished 2026-11-14T22:07:18Z
|
||||
|
||||
317879 new input tokens before the first commit.
|
||||
|
||||
Read most (opens and searches):
|
||||
|
||||
- `src/plain-text/adf-to-plain-text.test.ts` 7
|
||||
- `README.md` 5
|
||||
- `docs/decisions.md` 5
|
||||
- `todo.md` 4
|
||||
- `ci.sh` 2
|
||||
- `src/adf/shown-text.ts` 2
|
||||
- `src/html/carry-content.ts` 2
|
||||
- `src/plain-text/adf-to-plain-text.ts` 2
|
||||
- `CHANGELOG.md` 1
|
||||
- `docker-runner.sh` 1
|
||||
|
||||
Reference in New Issue
Block a user