Skip to content

fix: preserve line breaks in recipe summary/abstract display#190

Merged
dmnyc merged 1 commit intozapcooking:mainfrom
dmnyc:recipe-summary-linebreaks
Feb 20, 2026
Merged

fix: preserve line breaks in recipe summary/abstract display#190
dmnyc merged 1 commit intozapcooking:mainfrom
dmnyc:recipe-summary-linebreaks

Conversation

@dmnyc
Copy link
Collaborator

@dmnyc dmnyc commented Feb 20, 2026

Summary

  • Adds whitespace-pre-line to the recipe summary/abstract <p> tag so newline characters (\n) in the summary tag are rendered as visible line breaks instead of being collapsed by HTML

Test plan

  • View a longform recipe with multi-paragraph summary (e.g. the no seed oil/tahini dressing recipe referenced in the issue)
  • Confirm line breaks in the summary display match the author's intent

Screenshots

Before
image

After
image

@dmnyc dmnyc merged commit 0206c46 into zapcooking:main Feb 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments