mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 17:35:40 +01:00
Merge adjacent paragraphs in EmbeddedStatusContent
to benefit from -webkit-line-clamp
This commit is contained in:
parent
1f79147aa4
commit
a00b42c5a7
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue