3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 14:45:44 +01:00

Write and read a table as its elements in the HTML dialect

This commit is contained in:
2026-11-05 11:10:21 +01:00
committed by Lillem4n
parent d55a249ef3
commit f8157d3ad8
11 changed files with 388 additions and 53 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ export function attributeNestingMessage(key: string, type: string): string {
}
export function holdsOnlyAttributes(node: AdfNode, attributes: readonly string[]): boolean {
if (nodeMarks(node).length > 0 || node.text !== undefined || emptyKeys(node).length > 0) return false
if (nodeMarks(node).length > 0 || emptyKeys(node).length > 0) return false
return holdsOnly(nodeAttrs(node), attributes)
}