mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 07:05:44 +01:00
Answer prose round 1: 0 🔴, 8 🟡; say which marks a node refuses, and name the fix in the directive mark refusal
This commit is contained in:
+9
-5
@@ -7,12 +7,16 @@ A mark spelling skips a node Atlassian's schema withholds the mark from:
|
||||
| Input | `0.2.0` | `0.3.0` |
|
||||
| --- | --- | --- |
|
||||
| a `date`, `emoji`, `inlineCard`, `mention`, `status` or `mediaInline` inside a mark's spelling (`**!adf:mention[@A]{id=x}**`) | the node holds the mark | the node holds only marks its type takes; text beside it keeps the mark |
|
||||
| a link or directive mark around such nodes alone (`[!adf:status[Done]{color=green}](/u)`) | the nodes hold the mark | `unsupported-node-shape`; write the mark around text beside them |
|
||||
| a link or directive mark around only nodes that cannot take it, hard breaks under a link aside (`[!adf:status[Done]{color=green}](/u)`) | the nodes hold the mark | `unsupported-node-shape`; write the mark around text beside them |
|
||||
|
||||
`0.2.0` wrote these spellings for a node holding such a mark, which `0.3.0` writes as
|
||||
`!adf:carry{json="…"}`. Markdown stored from such a document reads back without the mark, or, where
|
||||
the mark wrapped such nodes alone, is refused: to keep it, read the markdown with `0.2.0` and write
|
||||
it with `0.3.0`, installed side by side.
|
||||
`0.2.0` wrote these spellings for a node holding such a mark; `0.3.0` writes the node as
|
||||
`!adf:carry{json="…"}`. `0.3.0` reads markdown stored from such a document without the mark, or
|
||||
refuses it where the mark wrapped such nodes alone. To keep the mark, read the markdown with `0.2.0`
|
||||
and write it with `0.3.0`, installed side by side:
|
||||
|
||||
```sh
|
||||
npm install @larvit/adf-codec@0.3.0 adf-codec-0.2@npm:@larvit/adf-codec@0.2.0
|
||||
```
|
||||
|
||||
## From `0.1.0` to `0.2.0`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user