Skip to main content

Rich Text to plain text

Custom converters

Add converters for custom blocks or override standard node handling:
Plain-text conversion has no default converter map. When a node has no converter, the converter applies these rules:
  • A text property becomes plain text.
  • children are converted recursively.
  • Nodes with neither property are ignored.
  • Paragraph, text, and tab nodes add their corresponding newline or tab characters.