+ {documentToReactComponents(content, {
+ renderText: (text) => {
+ return text.split("\n").reduce((lines, textSegment, index) => {
+ return [...lines, index > 0 &&
, textSegment];
+ }, new Array()); // eslint-disable-line @typescript-eslint/no-array-constructor
+ },
+ renderNode: {
+ [BLOCKS.EMBEDDED_ASSET]: (node) => {
+ return (
+
+ );
+ },
+ },
+ })}
+