mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-19 22:55:44 +01:00
Answer prose round 1: 0 🔴, 12 🟡 (0 misread); reword the marker messages, comments and docs, and name the directive-form exceptions
This commit is contained in:
+8
-5
@@ -34,17 +34,20 @@ for (const element of document.querySelectorAll('[data-text-color]')) element.st
|
||||
`htmlToAdf` still reads the HTML `0.3.1` wrote.
|
||||
|
||||
`adfToLosslessMarkdown` writes a paragraph, heading, quote, list, list item, code block or rule
|
||||
whose one attribute CommonMark can't spell is `localId` in its CommonMark spelling, the id in an
|
||||
`!adf:{localId=…}` marker, where `0.3.1` wrote its directive:
|
||||
whose only attribute beyond CommonMark's is `localId` in its CommonMark spelling, with the id in an
|
||||
`!adf:{localId=…}` marker. `0.3.1` wrote it as a directive. An empty paragraph or heading, and a list
|
||||
with an item whose id has no first paragraph, still take the directive. A quote, code block and rule
|
||||
take the marker too, placed as `spec/flavour.md` §The CommonMark blocks says:
|
||||
|
||||
| `0.3.1` | `0.4.0` |
|
||||
| --- | --- |
|
||||
| `!adf:heading {level=2 localId=h1}`, `Background`, `!adf:/heading` | `## Background !adf:{localId=h1}` |
|
||||
| `!adf:paragraph {localId=p1}`, `Text`, `!adf:/paragraph` | `!adf:{localId=p1}` above `Text` |
|
||||
| `!adf:bulletList {localId=l1}`, `!adf:listItem {localId=i1}`, … | `!adf:{localId=l1}` above `- !adf:{localId=i1} Item !adf:{localId=p1}` |
|
||||
| `!adf:bulletList {localId=l1}`, `!adf:listItem {localId=i1}`, … | `!adf:{localId=l1}` above `- !adf:{localId=i1} Item` |
|
||||
|
||||
`losslessMarkdownToAdf` still reads the directives `0.3.1` wrote. Code that searches stored lossless
|
||||
markdown for these directives, or a test pinning its text, needs the new spelling.
|
||||
`losslessMarkdownToAdf` still reads the directives `0.3.1` wrote, but `0.3.1` can't read a marker, so
|
||||
upgrade every reader before the writer. Code that searches stored lossless markdown for these
|
||||
directives, or a test pinning its text, needs the new spelling.
|
||||
|
||||
`portableMarkdownToAdf` reads more of GFM's pipe table:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user