import { getText } from "https://deno.land/x/netzo@0.5.107/deps/@tiptap/react.ts";
Gets the text of a Prosemirror node
Examples
Example 1
Example 1
const text = getText(node, { blockSeparator: '\n' })
Parameters
node: ProseMirrorNode
The Prosemirror node
optional
options: { blockSeparator?: string; textSerializers?: Record<string, TextSerializer>; }Options for the text serializer & block separator