Skip to content

Commit ca6937f

Browse files
committed
remove line breaks to prevent multiple markdown paragraphs
1 parent 1077361 commit ca6937f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/ContentShrinker/ContentShrinker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export const ContentShrinker = ({ className, children, ...otherOverflowProps }:
4040
}
4141
return "";
4242
})
43-
.join(" ");
43+
.join(" ")
44+
.replaceAll("\n", " ");
4445
};
4546

4647
return (

0 commit comments

Comments
 (0)