Render markdown bodies in emails #289

Closed
opened 2025-11-02 03:17:26 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @mjwwit on GitHub (Jan 26, 2017).

Description

Notification emails being sent after issues are created contain the body of the issue. Generally speaking, markdown formatting is used to structure the body of issues, and Gitea renders this perfectly fine. The notification emails though, contain the unformatted markdown content. Gitea should render the body to HTML before putting it in the emails to improve readability.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41348528-render-markdown-bodies-in-emails?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github).
Originally created by @mjwwit on GitHub (Jan 26, 2017). ## Description Notification emails being sent after issues are created contain the body of the issue. Generally speaking, markdown formatting is used to structure the body of issues, and Gitea renders this perfectly fine. The notification emails though, contain the unformatted markdown content. Gitea should render the body to HTML before putting it in the emails to improve readability. <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41348528-render-markdown-bodies-in-emails?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github). </bountysource-plugin>
GiteaMirror added the type/enhancement label 2025-11-02 03:17:26 -06:00
Author
Owner

@bkcsoft commented on GitHub (Feb 12, 2017):

I think we already do this. We send both a text/plain and text/html in the emails. And test/html should be rendered correctly.

@bkcsoft commented on GitHub (Feb 12, 2017): I think we already do this. We send both a `text/plain` and `text/html` in the emails. And `test/html` should be rendered correctly.
Author
Owner

@mjwwit commented on GitHub (Feb 13, 2017):

@bkcsoft Yes, there is a text/plain and a text/html version of the mail. The only rendered markup are links to issues/PRs though, and any other formatting seems to be sent as is. This looks extra chaotic because rendered html doesn't honor linebreaks in the source. I should have fixed the rendering of all markdown formatting in #803, but @lunny still got a text/plain email. I will do further debugging to see if I can resolve that.

@mjwwit commented on GitHub (Feb 13, 2017): @bkcsoft Yes, there is a `text/plain` and a `text/html` version of the mail. The only rendered markup are links to issues/PRs though, and any other formatting seems to be sent as is. This looks extra chaotic because rendered html doesn't honor linebreaks in the source. I should have fixed the rendering of all markdown formatting in #803, but @lunny still got a `text/plain` email. I will do further debugging to see if I can resolve that.
Author
Owner

@mjwwit commented on GitHub (Feb 26, 2017):

Fixed by #1027

@mjwwit commented on GitHub (Feb 26, 2017): Fixed by #1027
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#289