Page MenuHomePhorge

Phorge and Mermaid Js
OpenPublic

Asked by tanasi on Feb 8 2024, 21:30.

Details

Has anyone ever tried to do Phorge and Mermaid integration?

I am thinking that could greatly enhance editing experience, blog posts etc.

What do you think?

Example on GitLab:

Example usage on GitHub:

Project repository:

https://github.com/mermaid-js/mermaid

Answers

avivey
Updated 248 Days Ago

A long time ago, we actually had graphviz (https://graphviz.org/) support - it was removed for security concerns: it required running graphviz on the server, using user-provided input.

Remarkup is generated server-side, rather then client-side (like Markdown), so the setup is a little different; But it should be possible for a Remarkup rule to provide javascript based customization such as Mermaid.

I don't remember any attempt to actually insert JS-based Remarkup rule, but it should be possible.

tanasi
Updated 249 Days Ago

That would be really great taking into account the strength of the Mermaid tool to create graphs.

I think that the the mermaid markup would be easily adopted by the ones who use Phabricator and phorge.

bekay
Updated 182 Days Ago

@tanasi have a look at the R5 Diagrams Extension. It integrates draw.io and draw.io can render Mermaid syntax out of the box. So you can use it NOW.

New Answer