3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 22:25:44 +01:00

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 d49b95d336
commit 78c4c86d09
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 {