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

Answer prose round 1: 0 🔴, 6 🟡; the changelog names what breaks, the fallback reads as untyped mark, attribute or value, the spec's value list and marks paragraph split, messages name the JSON array to write

This commit is contained in:
2026-10-14 10:28:50 +02:00
committed by Lillem4n
parent 168ca1cea2
commit aefcd4b9e3
10 changed files with 37 additions and 35 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export function markValues(marks: readonly AdfMark[]): JsonValue {
return marks.map((mark) => (mark.attrs === undefined ? { type: mark.type } : { attrs: mark.attrs, type: mark.type }))
}
// spec/flavour.md, Block nodes: each mark by name, else the whole array as JSON, `undefined` where that array nests past largestNesting.
// `undefined` where the JSON array nests past largestNesting.
export function spellBlockMarks(marks: readonly AdfMark[]): string | undefined {
const named: string[] = []
for (const mark of marks) {