mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 23:25:43 +01:00
Answer prose round 1: 1 🔴, 6 🟡 (0 misread); reword the border entries, move the README row
This commit is contained in:
+2
-2
@@ -30,8 +30,8 @@
|
|||||||
around only code spans is `unsupported-node-shape`. `adfToLosslessMarkdown` writes code text
|
around only code spans is `unsupported-node-shape`. `adfToLosslessMarkdown` writes code text
|
||||||
holding another mark as `!adf:carry{json="…"}`, and `adfToPortableMarkdown` drops that mark.
|
holding another mark as `!adf:carry{json="…"}`, and `adfToPortableMarkdown` drops that mark.
|
||||||
- **Breaking:** `losslessMarkdownToAdf` gives text no `border` mark, as Atlassian's schema requires:
|
- **Breaking:** `losslessMarkdownToAdf` gives text no `border` mark, as Atlassian's schema requires:
|
||||||
`!adf:border[x]{color="#091e42" size=2}` is `unsupported-node-shape`, and `border` marks a
|
`!adf:border[x]{color="#091e42" size=2}` is `unsupported-node-shape`, and only a
|
||||||
`mediaInline` alone. `adfToLosslessMarkdown` writes text holding `border` as `!adf:carry{json="…"}`.
|
`mediaInline` takes `border`. `adfToLosslessMarkdown` writes text holding `border` as `!adf:carry{json="…"}`.
|
||||||
`MIGRATION.md` says how to convert stored markdown.
|
`MIGRATION.md` says how to convert stored markdown.
|
||||||
- Every reader keeps the URL and title of an image inside a link's text, where it dropped them:
|
- Every reader keeps the URL and title of an image inside a link's text, where it dropped them:
|
||||||
after the link comes `(image)`, which links to the image, so
|
after the link comes `(image)`, which links to the image, so
|
||||||
|
|||||||
+3
-3
@@ -285,10 +285,10 @@ content (`README.md` `## Goals`, Goal 7).
|
|||||||
each. Goals 1, 4 and 6. Valid while Atlassian's schema withholds marks from inline nodes. Extended
|
each. Goals 1, 4 and 6. Valid while Atlassian's schema withholds marks from inline nodes. Extended
|
||||||
to code text under this rule, without a panel, 2026-10-14; retitled by the maintainer the same day,
|
to code text under this rule, without a panel, 2026-10-14; retitled by the maintainer the same day,
|
||||||
keeping the directive-mark refusal the old title held. Extended to `border` on text, which the
|
keeping the directive-mark refusal the old title held. Extended to `border` on text, which the
|
||||||
schema withholds from formatted text, 2026-10-31, without a panel.
|
schema withholds from text, 2026-10-31, without a panel.
|
||||||
|
|
||||||
A mark spelling skips a node that takes none of its type, code text included, which takes only
|
A mark spelling skips a node that takes none of its type. Code text takes only `code`, `link` and
|
||||||
`code`, `link` and `annotation`, and text of any kind, which takes no `border`. So
|
`annotation`, and no text takes `border`. So
|
||||||
`**Ping !adf:mention[@A]{id=x} now**` reads as bold text around a plain mention, and
|
`**Ping !adf:mention[@A]{id=x} now**` reads as bold text around a plain mention, and
|
||||||
``**`npm ci`**`` as plain code. A directive mark wrapping only nodes that take none of its type
|
``**`npm ci`**`` as plain code. A directive mark wrapping only nodes that take none of its type
|
||||||
is `unsupported-node-shape` in `losslessMarkdownToAdf`. So is a link whose text holds something
|
is `unsupported-node-shape` in `losslessMarkdownToAdf`. So is a link whose text holds something
|
||||||
|
|||||||
+1
-1
@@ -556,7 +556,7 @@ A block's `marks` key also holds these, which no inline spelling wraps:
|
|||||||
- `indentation` — Attributes: `level` (number, 1–6).
|
- `indentation` — Attributes: `level` (number, 1–6).
|
||||||
|
|
||||||
A spelling adds its mark to every inline node it wraps that Atlassian's schema gives the mark. Text
|
A spelling adds its mark to every inline node it wraps that Atlassian's schema gives the mark. Text
|
||||||
takes every mark but `border`, and text marked `code` takes no other spelled mark but `link`:
|
takes every mark but `border`. Text marked `code` takes no other spelled mark but `link`:
|
||||||
``**`npm ci`**`` reads as plain code. Of the marks a spelling makes, `date`, `emoji`, `hardBreak`, `inlineCard`, `mention`
|
``**`npm ci`**`` reads as plain code. Of the marks a spelling makes, `date`, `emoji`, `hardBreak`, `inlineCard`, `mention`
|
||||||
and `status` take none, and `mediaInline` takes only `border` and `link`. Nesting is the
|
and `status` take none, and `mediaInline` takes only `border` and `link`. Nesting is the
|
||||||
marks array in order, outermost first: `_!adf:underline[x]_` gives marks `[em, underline]`,
|
marks array in order, outermost first: `_!adf:underline[x]_` gives marks `[em, underline]`,
|
||||||
|
|||||||
Reference in New Issue
Block a user