fix: preserve line breaks in longform article summaries (#756)
Co-authored-by: The Daniel <dmnyc@users.noreply.github.com>
This commit is contained in:
parent
481603d0e8
commit
d361ac60ab
2 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ export default function LongFormArticle({
|
|||
<h1 className="break-words">{metadata.title}</h1>
|
||||
{metadata.summary && (
|
||||
<blockquote>
|
||||
<p className="break-words">{metadata.summary}</p>
|
||||
<p className="whitespace-pre-line break-words">{metadata.summary}</p>
|
||||
</blockquote>
|
||||
)}
|
||||
{metadata.image && (
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export default function LongFormArticlePreview({
|
|||
)
|
||||
|
||||
const summaryComponent = metadata.summary && (
|
||||
<div className="line-clamp-4 text-sm text-muted-foreground">{metadata.summary}</div>
|
||||
<div className="line-clamp-4 whitespace-pre-line text-sm text-muted-foreground">{metadata.summary}</div>
|
||||
)
|
||||
|
||||
if (isSmallScreen) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue