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