diff --git a/src/PrismicRichText.tsx b/src/PrismicRichText.tsx
index 78ada7a..29dee98 100644
--- a/src/PrismicRichText.tsx
+++ b/src/PrismicRichText.tsx
@@ -152,7 +152,22 @@ const createDefaultSerializer = (
label: ({ node, children }) => (
{children}
),
- span: ({ text }) => <>{text}>,
+ span: ({ text, key }) => {
+ const result: React.ReactNode[] = [];
+
+ let i = 0;
+ for (const line of text.split("\n")) {
+ if (i > 0) {
+ result.push(
);
+ }
+
+ result.push(
", (t) => {
+ const field: prismicT.RichTextField = [
+ {
+ type: prismicT.RichTextNodeType.paragraph,
+ text: "line 1\nline 2",
+ spans: [],
+ },
+ ];
+
+ const actual = renderJSON(
+ line 1
+ line 2
+