Monorepo for Tangled tangled.org
856
fork

Configure Feed

Select the types of activity you want to include in your feed.

pulls: render trailing git trailers as separate lines in pull body markdown #181

open opened by nolith.dev targeting master from nolith.dev/tangled-core: pulls-fix-git-trailers

Pull descriptions ending with git trailers (for example Co-authored-by, Reviewed-by, Ticket) were rendered as a single wrapped paragraph because markdown treats single newlines as soft breaks. Normalize only trailing trailer blocks in pull bodies by converting trailer line separators to markdown hard line breaks (" \n"), then render through the existing markdown and sanitizer pipeline.

This keeps normal markdown behavior unchanged and avoids custom HTML rendering logic. The pull header template now uses markdownPullBody, and tests cover trailer normalization plus unchanged non-trailer cases.

AI-assisted: OpenCode (Openai GPT-5.3 Codex) Signed-off-by: Alessio Caiazza code.git@caiazza.info

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:nzep3slobztdph3kxswzbing/sh.tangled.repo.pull/3mgnw3arzwg22
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
nolith.dev submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments