generateText
@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
The JSONContent to generate text from
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