You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Supports Textual UML Diagrams in the markdown editor instead of picture reference #4229
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,
st=>start: Start
e=>end: End
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes or No?
io=>inputoutput: catch something...
st->op1->cond
cond(yes)->io->e
cond(no)->sub1(right)->op1
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,
sequence: Turns text into UML sequence diagrams flowchart: Draws simple SVG flow chart diagrams from textual representation of the diagram mermaid: A simple markdown-like script language for generating charts from text via javascript
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!
Reacted by Anders H., Nandi Wang, linweijie2012, mmmint, Shailesh, fanux, Sebastian Rojo, Noah Wang, hoysoft, Nnevld and 2 more
Reacted by Adam Ettenberger, Josh Kuo, Nandi Wang, rbong, linweijie2012, Shailesh, fanux, Noah Wang, Nnevld and Abdelkarim Ben Hamida
changed the title [-][Feature Request] - Supports Textual UML Diagrams in the markdown editor instead of picture reference[/-][+]Supports Textual UML Diagrams in the markdown editor instead of picture reference[/+]on Mar 3, 2017
Activity
[-][Feature Request] - Supports Textual UML Diagrams in the markdown editor instead of picture reference[/-][+]Supports Textual UML Diagrams in the markdown editor instead of picture reference[/+]terzinnorbert commentedon Oct 17, 2018
I had a quick solution for that. Add the following lines to templates/inject/head.tmpl:
and restart the service
jianblog commentedon May 22, 2019
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?
free1139 commentedon Oct 22, 2021
@unknwon
Could you take a look is the #6630 right when you have time?
I test it base on v0.12.3 cause the main code can't run in my old repository.