Skip to main content

renderBlocks

@retinue/monorepo


@retinue/monorepo / backend/src / renderBlocks

Function: renderBlocks()

renderBlocks(blocks): string

Defined in: backend/src/documents/render.ts:44

A window of blocks, rendered.

Blocks rather than characters, because a bound that can land inside a table would hand the model half a table — which is worse than no table, since the missing rows are invisible. A block is the smallest unit that is still meaningful on its own.

Parameters​

blocks​

readonly DocumentBlock[]

Returns​

string