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

This commit is contained in:
Claire 2024-10-09 11:16:46 +02:00
parent 1f79147aa4
commit a00b42c5a7

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') }}
/>
);
};