fix: preserve line breaks in longform article summaries (#756)

Co-authored-by: The Daniel <dmnyc@users.noreply.github.com>
This commit is contained in:
The Daniel 🖖 2026-02-22 23:44:00 -05:00 committed by GitHub
parent 481603d0e8
commit d361ac60ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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 && (

View file

@ -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) {