null,
- video: () => null,
- source: () => null,
- gif: () => null,
- p: ({ children }) => (
- {createQuotelink(handlequoteclick, comment, children)}
- ),
- }}
- />
- );
+ const lines = sanitizedContent.split(/(?:\r\n|\r|\n)/);
+ const greentextLines = lines.map((line, index) => {
+ if (line.startsWith('>')) {
+ return {line}
;
+ } else if (line === '') {
+ return
;
+ }
+ return {line}
;
+ });
+
+ return <>{greentextLines}>;
};
export default Post;
\ No newline at end of file