3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 14:45:44 +01:00
Commit Graph

138 Commits

Author SHA1 Message Date
lilleman 559ad4ec3c Answer architecture round 1: a * marker before a first line of * alone takes a backslash, the marker choice is a decision, the spec names which lists alternate, and the stale listBreak test goes 2026-10-09 15:39:13 +02:00
lilleman 40580e6948 Read a list whose bullet or ordered delimiter changes as two lists, and alternate the marker between adjacent lists in place of !adf:listBreak 2026-10-09 15:39:13 +02:00
lilleman e4364b19d0 Answer prose round 1: plainer decision title and spec, the refusal the spec owes, and comments that say why 2026-10-09 12:21:18 +02:00
lilleman 06c225f8f4 Keep the hard breaks a link text holds alone, after its destination, and move item 89 to 0.2.1 2026-10-09 12:21:18 +02:00
lilleman 852d010ff7 Answer product-owner round 1: an emphasis or link run spans an unmarked hard break, the recipe drops a hard break's marks, and the refusal names hard breaks 2026-10-09 12:21:18 +02:00
lilleman 2ca5ac41e6 Answer architecture round 1: the node table says a hard break takes no marks, and a link text of hard breaks alone reads as its destination 2026-10-09 12:21:18 +02:00
lilleman 3ff5c95f4c Build a hardBreak carrying no marks where a mark spelling spans a line break, in every reader 2026-10-09 12:21:18 +02:00
lilleman 050364dbdc Answer stability round 2: a link slot keeps a linked image linked, so the link-in-link refusal holds 2026-10-09 10:49:08 +02:00
lilleman d97c5c2935 Answer stability round 1: an !adf:link slot reads an image as plain alt text 2026-10-09 10:49:08 +02:00
lilleman 3a41e9ccca Answer architecture round 3: a link alone holding a titled image keeps its caption, and the decision's title names []() 2026-10-09 10:49:08 +02:00
lilleman 88aef1c8c4 Answer architecture round 1: one owner for the image's ADF shape, the readings' decision, marker paragraphs, the exceptions the README names; items 87 filed and 56 widened 2026-10-09 10:49:08 +02:00
lilleman 3b621a9cef Read every CommonMark image and empty link: an image ADF holds no node for as its linked alt text, a title as its caption, an empty link text as its destination 2026-10-09 10:49:08 +02:00
lilleman 23ec45febd Give each markdown input its own reader: commonMarkToAdf, losslessMarkdownToAdf and portableMarkdownToAdf, each claiming only its flavour 2026-10-09 03:08:39 +02:00
lilleman d7f2384876 Answer architecture round 1: the reader returns its refusals and owns its stack, a decision and a test keep JSON.parse out, item 83 filed, the scoring run recorded 2026-10-08 14:10:50 +02:00
lilleman 913aae49ea Answer stability round 1: hand every not-a-string refusal its own position 2026-10-07 12:39:45 +02:00
lilleman 41ac4510f5 Answer architecture round 1: name a non-string by typeof alone, name and comment what the seats could not read, file items 81 and 82 2026-10-07 12:39:45 +02:00
lilleman 2c4fadbd8b Refuse a markdown input that is not a string with not-a-string 2026-10-07 12:39:45 +02:00
lilleman 0bc086ba43 Answer architecture round 1: a code span opening a line spells as CommonMark, the slot refuses a null character, every generated document emits 2026-10-04 20:43:46 +02:00
lilleman e040d1d3ef Spell every document the emitter refused for a carriage return, a null character, a code-span line start or an empty text node 2026-10-04 20:29:29 +02:00
lilleman 4409d5befc Reword the attrs=empty and language-placement refusals, quoting a language that needs it 2026-10-03 15:17:40 +02:00
lilleman 91879d01b1 Lead the code block, empty-key, carry fence, text break and carry-in-mark refusals with their fix 2026-10-03 15:12:51 +02:00
lilleman 1d6a6b0914 Name the code block wrapper in the two carry-fence refusals that lacked it 2026-10-03 15:05:51 +02:00
lilleman d912bf1c9f Lead the refusals ordinary editing meets with the edit that fixes them 2026-10-03 15:05:36 +02:00
lilleman 213b7c2d3f Name the adf: fence among the carve-outs, and the way a fence stays code in its errors 2026-10-03 14:41:30 +02:00
lilleman 4b12951e38 Refuse a carry fence naming a type no info string carries back 2026-10-03 14:20:47 +02:00
lilleman b78d841b34 Carry the text break as its own item, not a fake node, and check it where the outermost content resolves 2026-10-03 14:19:55 +02:00
lilleman 039aac8873 Make markdownToAdf(adfToMarkdown(doc)) deep-equal doc: textBreak, empty keys, -0, typed carry fences, code blocks of several text nodes 2026-10-03 12:25:01 +02:00
lilleman 1d1bcb8b57 Pin the rebase's magnitude: one overflow list makes a constant accept what the emitter refuses 2026-09-19 13:43:34 +02:00
lilleman 396cea65c0 A read below the depth that filled the memo re-spells, so the depth guards still run 2026-09-19 13:37:58 +02:00
lilleman 9d83701261 One comment guards the input's shape, the other the field 2026-09-19 02:33:23 +02:00
lilleman dd612b85c4 Pin the deactivation where an image close folds the evidence away 2026-09-19 02:31:03 +02:00
lilleman ff59d737c4 Literal brackets put nothing inside a mark, so the nested-link check runs ahead of both guards 2026-09-19 02:21:38 +02:00
lilleman 508851b953 Review nits: the walk's start needs no clamp, and the invariant needs one copy 2026-09-19 02:15:15 +02:00
lilleman 29bb0a29f6 Pin what the doomed openers keep: the carry and the image literal brackets hold 2026-09-19 02:09:19 +02:00
lilleman 50200bcc18 Review nits: deactivate the openers a nested link dooms, and pin the refusal order 2026-09-19 02:02:01 +02:00
lilleman 0f79dac6ec 16 - no link wraps a link: the outer brackets go literal, the directive form is refused 2026-09-19 01:48:30 +02:00
lilleman 484e5253a5 Review nits: drop the spec's restated carry rule, the test's duplicate paths and todo.md's incident note 2026-09-18 23:14:37 +02:00
lilleman 220cf31db2 15 - refuse the directive link spelling no href, so the mark has one spelling 2026-09-18 23:08:34 +02:00
lilleman 9c0daa18d5 4b - the walk reports its headroom, so a list falling back to the directive form refuses at zero and the list limit stays 500 2026-09-18 00:34:52 +02:00
lilleman bd14b25b20 4b - the block walk spells a list from one walk, a list and its item counting two levels in every spelling 2026-09-18 00:13:55 +02:00
lilleman ba266d26e9 13b - review nits: README code span, AGENTS.md §2 example, comments, block-directive link message 2026-09-16 23:28:31 +02:00
lilleman eea9e01d52 13b - link arm back in emitLink, one isBareLink, directiveMarkPiece, refusal names the spelling, spec subset section follows 2026-09-16 23:15:34 +02:00
lilleman b02dea1277 13b - link takes the directive form where CommonMark cannot spell it, unspellable-link leaves the code list 2026-09-16 23:09:30 +02:00
lilleman 91d03cdbcd 12c: a test pins the closer to its list item or blockquote edge, and 4c names the list-item walk's re-scan class 2026-09-16 20:23:00 +02:00
lilleman b26f7e6b87 12c: the block walk matches only list items and blockquotes per line and finds a closer's container by name, replacing the depth guard 2026-09-16 20:08:49 +02:00
lilleman 8706267be4 12c: the block walk opens no container past the depth the node walk refuses, and the closer messages name the escape 2026-09-16 19:40:30 +02:00
lilleman 0fd236c749 12c: a leaf given a body faults at its opener 2026-09-16 19:19:15 +02:00
lilleman 0eb2665ffe 12c: the block directive forms read and spell !adf: openers and closers 2026-09-16 15:46:52 +02:00
lilleman 1e63dd45b4 12b: the content slot refuses a carried text node's content too, and the reserved-name message names the live fence 2026-09-16 10:26:12 +02:00
lilleman e7d3697dc4 12b: the inline directive forms read and spell the !adf: prefix 2026-09-16 09:52:52 +02:00