From 6e3b7e692c171be3868a76728aded8c11e8a3fb3 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 6 Sep 2026 23:15:16 +0200 Subject: [PATCH] =?UTF-8?q?Cite=20=C2=A714=20instead=20of=20the=20ticked?= =?UTF-8?q?=203e=20item=20in=20the=20count=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commonmark-spec.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commonmark-spec.test.ts b/src/commonmark-spec.test.ts index 0930fc2..4fae249 100644 --- a/src/commonmark-spec.test.ts +++ b/src/commonmark-spec.test.ts @@ -83,9 +83,8 @@ test('the refusal list is unique per example and names real examples', () => { for (const example of exampleToRefusal.keys()) assert.ok(spec.some((entry) => entry.example === example), `refusal ${example} names no example in the suite`) }) -// The reference HTML is corpus data, never converted (AGENTS.md §1): its element names are counted against -// the nodes and marks the CommonMark subset maps to. A mark is counted once per text node it touches — 3e -// collapses a spelling nested inside its own kind, so `*(*a*)*` is one `em` mark against two `` elements. +// A mark is counted once per text node it touches: nesting inside its own kind names the mark once, so +// `*(*a*)*` is one `em` against two `` elements (AGENTS.md §14). const countKeys = ['a', 'blockquote', 'br', 'code', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'img', 'li', 'ol', 'pre', 'strong', 'ul'] const nodeElement: Record = { blockquote: 'blockquote',