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:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user