-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mermaid Js not rendering in Readme but in Issues and Wiki #12307
Comments
I wanted to add that the Graph doesn't get rendered in any of the Previews. |
How did you customerize your template files? |
I did exactly as outlined in the Customizing Gitea Page Both code blocks i tried in the footer.tmpl file: {{end}}` 2nd ` |
|
Actually it looks we did preserve the |
I wanted to clarify, even with the RequireHighlightJS Statement removed it doesn't render. |
I assume this is because the How does the markdown source look? Are you adding |
The class gets added in the Raw Markdown (Github would screw with it) |
Markdown for wiki and readme should be generated from the same place and output the same code. If all mermaidjs does is look for a block with .language-mermaid it should work the same in both places but I don't really know anything about mermaid js otherwise. I guess you can see what the difference is between the two Agree our doc recommendation to check for highlightjs is bad and should probably be changed to something else less specific as @silverwind suggests. |
I will probably have a look at integrating mermaid.js directly as a first-party script. It should not be too hard and one extra lazy-loaded lib does not impact our performance at all. After that's done, we can get rid of |
For feature parity with GitLab. Tested in files, issues, wiki, editor. arc-green only does an inversion because the renderer seems to like to render white backgrounds on boxes. Ref: go-gitea#3340 Fixes: go-gitea#12307
* Add mermaid JS renderer For feature parity with GitLab. Tested in files, issues, wiki, editor. arc-green only does an inversion because the renderer seems to like to render white backgrounds on boxes. Ref: #3340 Fixes: #12307 * add feature entry, switch to neutral theme, remove border * add bindFunctions support * remove unnecessary border-radius Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: techknowlogick <[email protected]>
[x]
):Description
Mermaid.js rendering is only working in Issues & Wiki. Not in README.md files.
Code used to test:
Screenshots
The text was updated successfully, but these errors were encountered: