Escape the quoted attribute value, and pin the canonical form and the pipe cell's edges #23

Merged
lilleman merged 4 commits from attribute-escape into main 2026-08-27 00:09:23 +02:00
Owner

2e3. A quoted attribute value now escapes `, &, < and | as \u0060, \u0026, \u003c and \u007c, in every directive — the maintainer's pick. Emitted attributes are inert to the code span, entity reference, autolink, raw HTML and the pipe cell's split, so a table whose cell holds an attribute pipe keeps the pipe form, and escaping: 'attribute' collapsed into none.

Two false claims in spec/flavour.md fixed where found: the Tables paragraph listed an inline directive's attributes as unspellable while pinning \u007c for exactly that.

2e3. A quoted attribute value now escapes `` ` ``, `&`, `<` and `|` as `\u0060`, `\u0026`, `\u003c` and `\u007c`, in every directive — the maintainer's pick. Emitted attributes are inert to the code span, entity reference, autolink, raw HTML and the pipe cell's split, so a table whose cell holds an attribute pipe keeps the pipe form, and `escaping: 'attribute'` collapsed into `none`. Two false claims in `spec/flavour.md` fixed where found: the Tables paragraph listed an inline directive's attributes as unspellable while pinning `\u007c` for exactly that.
lilleman added 1 commit 2026-08-26 23:27:40 +02:00
lilleman added 1 commit 2026-08-26 23:45:45 +02:00
lilleman added 1 commit 2026-08-26 23:53:20 +02:00
lilleman added 1 commit 2026-08-27 00:08:39 +02:00
lilleman merged commit 185bf75bf3 into main 2026-08-27 00:09:23 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: larvit/adf-codec#23