Skip to content

Skip horizontal rule when no metadata is present - #20

Merged
raunaqgupta merged 1 commit into
mainfrom
05-20-2026-fix-empty-metadata-hr
May 20, 2026
Merged

raunaqgupta merged 1 commit into
mainfrom
05-20-2026-fix-empty-metadata-hr

Conversation

@raunaqgupta

Copy link
Copy Markdown
Owner

Summary

  • The <hr> separating metadata from the rest of the recipe was being rendered unconditionally, leaving a stray horizontal rule at the top when a recipe had no metadata
  • renderMetadata now returns whether it rendered anything; the caller only inserts the <hr> when metadata was present

Closes #19

Test plan

  • Render a recipe with metadata → horizontal rule appears below the metadata block
  • Render a recipe with no metadata → no leading horizontal rule

🤖 Generated with Claude Code

Closes #19

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@raunaqgupta
raunaqgupta merged commit d2832d0 into main May 20, 2026
4 checks passed
@raunaqgupta
raunaqgupta deleted the 05-20-2026-fix-empty-metadata-hr branch May 20, 2026 17:38
@raunaqgupta raunaqgupta mentioned this pull request May 20, 2026
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.

Remove horizontal rule if no meta information present

1 participant