Description
When a comment containing a Mermaid diagram is truncated on the homepage (max 200 chars),
the code block may not be closed properly, causing a "Parse error" in the rendered diagram.
Additionally, Mermaid pipelines using '|' are sometimes truncated incorrectly.
https://demo.gitea.com/tyroneyeh/TestRepo/issues/1
Gitea Version
1.25.4
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Home:

Git Version
No response
Operating System
linux
How are you running Gitea?
command-line
Database
PostgreSQL
Description
When a comment containing a Mermaid diagram is truncated on the homepage (max 200 chars),
the code block may not be closed properly, causing a "Parse error" in the rendered diagram.
Additionally, Mermaid pipelines using '|' are sometimes truncated incorrectly.
https://demo.gitea.com/tyroneyeh/TestRepo/issues/1
Gitea Version
1.25.4
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Home:

Git Version
No response
Operating System
linux
How are you running Gitea?
command-line
Database
PostgreSQL