36b - §8, §9 and §14's decisions move to docs/decisions.md
CI / gate (push) Successful in 42s
CI / publish (push) Has been cancelled

This commit is contained in:
2026-09-28 03:54:34 +02:00
parent c64eed9301
commit fb97285899
9 changed files with 161 additions and 118 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ 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`)
})
// A mark is counted once per text node it touches (AGENTS.md §14).
// A mark is counted once per text node it touches (docs/decisions.md §No schema validation).
const countKeys = ['a', 'blockquote', 'br', 'code', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'img', 'li', 'ol', 'pre', 'strong', 'ul']
const nodeElement: Record<string, string> = {
blockquote: 'blockquote',
+1 -1
View File
@@ -69,7 +69,7 @@ export function readInlineDirectiveNode(
return success(namedNode(name, attrs.value, undefined))
}
// A name the other position spells names that spelling, never the code a later MINOR may fill (AGENTS.md §8).
// A name the other position spells names that spelling, never the code a later MINOR may fill (docs/decisions.md §Which code a cause takes).
function inlineSpellingFault(name: string): ConvertFault | undefined {
const mark = inlineMarkSpellingFault(name)
if (mark !== undefined) return mark
+1 -1
View File
@@ -477,7 +477,7 @@ function markType(character: string, used: number): string {
return used === 2 ? 'strong' : 'em'
}
// A node cannot carry one mark type twice (AGENTS.md §14).
// A node cannot carry one mark type twice (docs/decisions.md §No schema validation).
function applyMark(nodes: readonly AdfNode[], mark: AdfMark): AdfNode[] {
return nodes.map((node) => {
const marks = nodeMarks(node)
+1 -1
View File
@@ -25,7 +25,7 @@ function calledCodes(): string[] {
return [...called].sort()
}
// The list is frozen at 0.1.0 (AGENTS.md §8), so a code outliving its cause is a removal that costs a MAJOR.
// The list is frozen at 0.1.0 (docs/decisions.md §The code list), so a code outliving its cause is a removal that costs a MAJOR.
test('every ConvertErrorCode is the code of a production call site, and every call site names a declared one', () => {
assert.deepEqual(calledCodes(), declaredCodes())
})