mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 15:15:44 +01:00
Write tables, images, cards, extensions and expand titles in adfToPlainText
This commit is contained in:
+19
-1
@@ -1316,6 +1316,16 @@ candidates for the links and four for task state. All three picked a link's addr
|
||||
after its text, with the title after the address, and `☑` and `☐` in place of the bullet. All three
|
||||
had expected no title, and goal 7 counts a title as content, so every candidate kept it.
|
||||
|
||||
A third panel, of 3 then 7 (export/indexing, support agent and product manager first; then LLM/agent,
|
||||
engineer, viewer/editor and bot), wrote the text they expected, then picked among shuffled candidates
|
||||
for a table, an image, a card, an extension and an expand. All three agreed on one line per row with
|
||||
` | ` between cells, a header row like any other, a merged cell written once with no place for the
|
||||
cells it covers, a card as its address, an extension as its text, and an expand as its title, a blank
|
||||
line, then its body. Five of seven picked `[image]` for an image with nothing to show. Three splits
|
||||
went to the maintainer: a block in a cell (five of seven expected the blocks joined by a space, so
|
||||
that is the rule), and an image with an address (alt text then ` (address)`, as links do, since
|
||||
goal 7 counts the address as content; with no alt text the address alone).
|
||||
|
||||
`adfToPlainText` writes:
|
||||
|
||||
- Blocks a blank line apart; an item's blocks and a list's items one line feed apart.
|
||||
@@ -1330,4 +1340,12 @@ had expected no title, and goal 7 counts a title as content, so every candidate
|
||||
the link; nothing after a link whose text is its address and that holds no title.
|
||||
- Any other mark as the text it marks.
|
||||
- A block holding no text as nothing, with no extra blank line.
|
||||
- A table as its cells written as blocks, until item 180 gives it a spelling.
|
||||
- A table as a line per row, a line feed apart, its cells apart by ` | ` and an empty cell empty, a
|
||||
header row like any other; a merged cell once, the cells it covers writing no place; a cell's
|
||||
blocks, hard breaks and code lines on its line a space apart, a list item behind its marker.
|
||||
- An image as its alt text, else its address, else `[image]`; then ` (address)` for the link around
|
||||
it, titled as a link is, then ` (address)` for its own address where the alt text stood in for it.
|
||||
- A card as its address, or its name then ` (address)`; an extension as its `text`, and as nothing
|
||||
with none; no other note is written, so a card, an extension or a synced block holding nothing
|
||||
writes nothing.
|
||||
- An expand's title on a line, a blank line above its body.
|
||||
|
||||
Reference in New Issue
Block a user