mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-19 14:45:44 +01:00
Answer prose round 1: 0 🔴, 6 🟡; the changelog names what breaks, the fallback reads as untyped mark, attribute or value, the spec's value list and marks paragraph split, messages name the JSON array to write
This commit is contained in:
@@ -316,11 +316,11 @@ Ping !adf:mention[@Mikael]{id=5b10a2} — !adf:status[In review]{color=yellow}
|
||||
|
||||
- Attributes are `{key=value key2="two words"}`: keys alphabetical, a value bare where it is
|
||||
`[A-Za-z0-9_-]+`, else double-quoted with JSON string escaping. A number or JSON value is spelled as
|
||||
canonical JSON, but `colwidth` is its widths joined by commas, `colwidth="340,420"`, and a block's
|
||||
`marks` names each mark with its attributes, `marks="breakout{mode=wide}"`, keeping the JSON array
|
||||
where the flavour does not list a mark's type, one of its attributes, or the type of one's value.
|
||||
An empty `attrs`, `content` or `marks` key is spelled `{attrs=empty}`, `{content=empty}` or
|
||||
`{marks=empty}`.
|
||||
canonical JSON, with two exceptions. `colwidth` joins its widths with commas: `colwidth="340,420"`.
|
||||
A block's `marks` names each mark followed by its attributes, `marks="breakout{mode=wide}"`, and
|
||||
stays a JSON array where the flavour does not list a mark's type or one of its attributes, or a
|
||||
value holds another type than the flavour gives it. An empty `attrs`, `content` or `marks` key is
|
||||
spelled `{attrs=empty}`, `{content=empty}` or `{marks=empty}`.
|
||||
- Three reserved names build no node: `!adf:carry` is the inline opaque carry, `!adf:doc {content=none}`
|
||||
spells a document holding no `content` key, and `!adf:textBreak{}` parts two adjacent text nodes
|
||||
CommonMark would read back as one.
|
||||
|
||||
Reference in New Issue
Block a user