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

Read the carries and the combinations back, and land markdownToAdf

This commit is contained in:
2026-09-03 07:01:27 +02:00
parent 121010d2b8
commit 34fd18e852
19 changed files with 213 additions and 56 deletions
+4
View File
@@ -37,6 +37,10 @@ export function isAdfDocument(value: unknown): value is AdfDocument {
return !('content' in value) || isNodeArray(value['content'])
}
export function isAdfNode(value: unknown): value is AdfNode {
return isNodeArray([value])
}
export function isAdfMark(value: unknown): value is AdfMark {
if (!isRecord(value) || !holdsOnly(value, markKeys)) return false
if (typeof value['type'] !== 'string') return false