3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 22:55:44 +01:00

Answer architecture round 2: the refusal row says a carried node escapes it, and the empty-link decision's title names the hard-break case

This commit is contained in:
2026-10-09 11:07:11 +02:00
committed by Lillem4n
parent 2ca5ac41e6
commit 2340937fb2
4 changed files with 13 additions and 14 deletions
+5 -5
View File
@@ -518,12 +518,12 @@ the inline directive `!adf:link[text]{attrs}` only where CommonMark does not: an
`href` and `title`, an `href` or `title` no canonical escape spells (a control character, a
backslash, an entity reference, an angle bracket beside a space or opening a bare destination, a
newline in the title), or a link opening a paragraph whose markdown spelling would read as a link
reference definition. Every such spelling carries an `href`: a directive link CommonMark could
spell is a named error, and so is one spelling none. No link wraps a link at any nesting, which is
reference definition. Every such spelling carries an `href`: a directive link CommonMark could spell
is a named error, and so is one spelling none. No link wraps a link at any nesting, which is
CommonMark's own rule: a `[text]` already holding one leaves the outer brackets literal text, and
the directive form, open to no literal reading, is a named error. ADF holds no empty text node, so
a link whose text is empty or holds only hard breaks reads as its destination linked, `[](/url)` as `/url`, and one whose
destination is empty too, `[]()`, as nothing.
the directive form, open to no literal reading, is a named error. ADF holds no empty text node, so a
link whose text is empty or holds only hard breaks reads as its destination linked, `[](/url)` as
`/url`, and one whose destination is empty too, `[]()`, as nothing.
- `border` — Attributes: `color` (string, `#rrggbb` or `#rrggbbaa`), `size` (number, 1–3).
- `code`, `em`, `strike`, `strong` — Attributes: none.