-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
💊 bugSomething isn't workingSomething isn't working
Description
Gogs version
0.14.0+dev
Git version
- Server: 2.30.2
- Client: N/A
Operating system
Debian 11
Database
MySQL
Describe the bug
Writing Mermaid code to some .md-file in the Repo (eg. README.md) will render the diagram as expected (as implemented in #4229 )
However moving the same file into the Wiki will just display the plain mermaid code instead of the diagram.
To reproduce
Add a Wiki-Page with the following content
graph LR
A -> B
Expected behavior
The mermaid graph is rendered in the browser.
Additional context
In templates/base/footer.tmpl the code block importing the mermaid library is guarded by an {{if .IsMarkdown}}. This flag seems not to be set, when viewing Wiki pages.
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
💊 bugSomething isn't workingSomething isn't working