-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Supports Textual UML Diagrams in the markdown editor instead of picture reference #4229
Comments
I had a quick solution for that. Add the following lines to templates/inject/head.tmpl:
and restart the service |
Gogs version 0.11.86.0130 after add above scripts into templates/inject/head.tmpl, and restart gogs web. then edit an markdown file or issue:
but nothing happens when preview or save. If these steps right? |
According to the solution @terzinnorbert posted, he imported the mermaid (a nice opensource textual UML tool) library into gogs. graph TD:
A-->B;
B-->C;
C-->D;
For more information, please visit https://mermaid-js.github.io/mermaid/#/README. It works perfectly for me. |
The Textual UML Diagrams draws simple SVG UML chart diagram from textual representation of the diagram. take the flow chart for example,
In the markdown editor such as issue comments and wiki pages typed the below textual code,
then they would be rendered as a simple SVG flow chart diagram when the page showed up
It's cooool feature! I could post UML diagrams to project wiki without any image reference if gogs was able to support it. Currently I had to setup an external images website to provide image links for gogs wiki.
The feature can be introduced as plugins into gogs, see below reference for details,
I am using Typora as off-line markdown editor which already supports this feature, and now I was expecting to post its output completely to gogs wiki if gogs supported as well.
Thanks a lot for team! Thanks for your good job!
The text was updated successfully, but these errors were encountered: