Merge adjacent paragraphs in `EmbeddedStatusContent` to benefit from `-webkit-line-clamp`

fixes/notification-excerpt-paragraph
Claire 2024-10-09 11:16:46 +02:00
parent 1f79147aa4
commit a00b42c5a7
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ export const EmbeddedStatusContent: React.FC<{
className={className}
ref={handleContentRef}
lang={language}
dangerouslySetInnerHTML={{ __html: content }}
dangerouslySetInnerHTML={{ __html: content.replace(/<\/p><p>/g, '\n\n') }}
/>
);
};