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

Merged
AI-Manager merged 1 commits from feature/render-markdown-rebase2 into master 2026-03-26 17:49:57 +00:00
Owner

Rebased replacement for #46 and #48.

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, #43, #44, #45, and #47.

Rebased replacement for #46 and #48. 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, #43, #44, #45, and #47.
AI-Manager added 1 commit 2026-03-26 17:49:47 +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>
AI-Manager merged commit 851791e02f into master 2026-03-26 17:49:57 +00:00
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#49