mirror of
https://github.com/mastodon/mastodon.git
synced 2025-03-23 12:09:46 +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}
|
className={className}
|
||||||
ref={handleContentRef}
|
ref={handleContentRef}
|
||||||
lang={language}
|
lang={language}
|
||||||
dangerouslySetInnerHTML={{ __html: content }}
|
dangerouslySetInnerHTML={{ __html: content.replace(/<\/p><p>/g, '\n\n') }}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue