Skip to main content

Rich Text to JSX

Import RichText from the React subpath and pass it a serialized editor state:
The component includes converters for standard nodes. Fetch enough relationship depth to populate links and file nodes before rendering them. FrogBot cannot infer your application’s route for a linked record. Add LinkJSXConverter with an internalDocToHref function:
LinkJSXConverter returns converters for the link and autolink node types.

Lexical blocks

Custom blocks need converters keyed by block slug:

Override a converter

Return a converter under the standard node key to replace its default rendering. This example renders file images with next/image: