Skip to main content

generateText

@blockslides/core


@blockslides/core / generateText

Function: generateText()

generateText(doc, extensions, options?): string

Defined in: blockslides/packages/core/src/helpers/generateText.ts:15

Generate raw text from a JSONContent

Parameters

doc

JSONContent

The JSONContent to generate text from

extensions

Extensions

The extensions to use for the schema

options?

Options for the text generation f.e. blockSeparator or textSerializers

blockSeparator?

string

textSerializers?

Record<string, TextSerializer>

Returns

string

The generated text