interface

RichTextPlaintextOptions

Text for the nodes convertLexicalToPlaintext can't read text from, such as custom blocks.

Properties

PropertyTypeDescription
blocksPartial<RichTextBlockRenderers<Payload, string>>Text for custom blocks, which have none of their own. Blocks without a converter are left out.
nodesPartial<Record<"upload" | "relationship", (node: Extract<RichTextNode<Payload>, { type: "upload" | "relationship"; }>) => string>>Text for uploads and relationships, such as a caption. Without a converter they're left out.

Full signature

interface RichTextPlaintextOptions<Payload extends { blockType: string }> { ... }

Source packages/sdk/src/richtext/index.ts:22