import { BLOCKS, MARKS } from '@contentful/rich-text-types'; import { documentToHtmlString } from '@contentful/rich-text-html-renderer'; const options = { renderMark: { [MARKS.BOLD]: (text) => `${text}`, }, renderNode: { [BLOCKS.PARAGRAPH]: (node, next) => `${next(node.content)}`, }, }; export function RichTextDocument({ document }) { return (
); }