toBlocks
@forge/monorepo / backend/src / toBlocks
Function: toBlocks()
toBlocks(
value): readonlyDocumentBlock[]
Defined in: backend/src/export/index.ts:107
An artifact's content as blocks.
Accepts either the block list #131 produces or a markdown string, and parses the latter with #131's own parser rather than a second one. Two parsers for markdown would eventually disagree, and the one that disagreed would be whichever the exporter used.
Parameters
value
unknown
Returns
readonly DocumentBlock[]