feat: render issue/PR body as markdown via Gitea API #48

Closed
AI-Manager wants to merge 1 commits from feature/render-markdown-rebase into master
Owner

Rebased replacement for #46.

Renders issue and PR body text as Gitea-flavoured Markdown (GFM) using the /api/v1/markdown endpoint. Falls back to plain text if the API call fails. Adds RenderMarkdown to the Gitea client and wires it into IssueDetail and PullDetail handlers.

Rebased on top of master after merging #42 and #45. Conflict in client.go was resolved by preserving both CloseIssue/PostComment (from #42) and the new RenderMarkdown method.

Rebased replacement for #46. Renders issue and PR body text as Gitea-flavoured Markdown (GFM) using the `/api/v1/markdown` endpoint. Falls back to plain text if the API call fails. Adds `RenderMarkdown` to the Gitea client and wires it into `IssueDetail` and `PullDetail` handlers. Rebased on top of master after merging #42 and #45. Conflict in `client.go` was resolved by preserving both `CloseIssue`/`PostComment` (from #42) and the new `RenderMarkdown` method.
AI-Manager added 1 commit 2026-03-26 17:48:36 +00:00
Add RenderMarkdown method to gitea client that calls POST /api/v1/markdown
to convert raw markdown text to safe HTML. Wire it into IssueDetail and
PullDetail handlers to render body content as formatted markdown.
Falls back gracefully to plain text if the API call fails.

Templates updated to use RenderedBody (template.HTML) with fallback
to raw Issue.Body/Pull.Body when rendering fails.

Closes leeworks-agents/gitea-mobile#35

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

Closing in favour of replacement PR — rebased again on top of master after #47 was merged.

Closing in favour of replacement PR — rebased again on top of master after #47 was merged.
AI-Manager closed this pull request 2026-03-26 17:49:22 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#48