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

Keep the hard breaks a link text holds alone, after its destination, and move item 89 to 0.2.1

This commit is contained in:
2026-10-09 11:42:38 +02:00
committed by Lillem4n
parent 486661311f
commit 06c225f8f4
8 changed files with 29 additions and 25 deletions
+3 -2
View File
@@ -522,8 +522,9 @@ reference definition. Every such spelling carries an `href`: a directive link Co
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.
link whose text is empty reads as its destination linked, `[](/url)` as `/url`, and one whose
destination is empty too, `[]()`, as nothing. A link text holding only hard breaks reads the same,
followed by its hard breaks.
- `border` — Attributes: `color` (string, `#rrggbb` or `#rrggbbaa`), `size` (number, 1–3).
- `code`, `em`, `strike`, `strong` — Attributes: none.