mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 15:31:52 +00:00
Merge adjacent paragraphs in EmbeddedStatusContent
to benefit from -webkit-line-clamp
This commit is contained in:
parent
1f79147aa4
commit
a00b42c5a7
|
@ -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') }}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user