fn
replaceBlocks
testedReturn a copy of doc with a different block list.
Signature
ts
export function replaceBlocks(doc: WritekitDocument, content: readonly Node[]): WritekitDocument{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
doc | WritekitDocument | — |
content | readonly Node[] | — |
Returns
WritekitDocument| Property | Type | Description |
|---|---|---|
type | 'doc' | — |
content | readonly Node[] | — |