59 points dchest 3 hours ago 7 comments

nickmain 1 hour ago | parent

Does the official Mermaid library still require a full or headless browser environment in order to lay out the SVG? If so, Pele is great news for embedding Mermaid rendering in other places.

invokestatic 3 minutes ago | parent

The python mermaidx library works for this, which works well for generating documentation with embedded diagrams as part of CI/CD but the layout/rendering can sometimes be very wonky. For instance I will have a bunch of connections crossing over each other instead of neatly arranged to avoid it. Changing the layout settings does not fix it so sometimes I will just export it from mmdc and embed a png.

Imustaskforhelp 1 hour ago | parent

Is pele open source?

I tried to find the source code of it but I was unable in finding so

Edit: found it, https://github.com/obsidianmd/pele

Also folks, this is a good reminder to please have a github icon on the top of the page to easily show git/github links if the app is open source, also helps in the fact that I can star your projects and bookmark them more easily :-D

blktiger 1 hour ago | parent

druvisc 56 minutes ago | parent

Just FYI, "pele" is "mouse" in Latvian. :)

hmokiguess 35 minutes ago | parent

and "skin" in portuguese :)

apodik 30 minutes ago | parent

and a football player in brazil :D