10a - notes clean their names, leading rules give way, an overflowing numbered list keeps its numbers, one fallback order

This commit is contained in:
2026-09-25 19:28:53 +02:00
parent d35637c8fa
commit 8418150cd3
4 changed files with 44 additions and 38 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ function mediaLeaves(attrs: Readonly<AdfAttributes>, marks: readonly AdfMark[],
}
function noteLeaves(name: string): AdfNode[] {
return [textLeaf(`(${name} not included)`, [{ type: 'em' }])]
return [textLeaf(`(${name.replace(/[\r\u0000]/g, '').replace(/\n/g, ' ')} not included)`, [{ type: 'em' }])]
}
function nonEmpty(value: unknown): string | undefined {