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.
It still boggles my mind that mermaid's devs think you need an entire freakin' browser to render an SVG. Sometimes I think people need to be reminded of the fundamentals.
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.
Remote: Yes, occasional on-site meetings in California
Technologies:
- 8 years Swift on iOS, tvOS. SwiftUI, UIKit
- Past: Java, back-end and Swing. JVM bytecode instrumentation, transpiling
- Casual: Typescript, Haxe, Python, Racket, Prolog, CLIPS
- Currently hacking on Swift wrappers for CLIPS rules and SQLite virtual tables
I've been developing in Swift on iOS/macOS/tvOS since it launched and I switched from back-end Java. Currently deep into SwiftUI and exploring DSL/API design with ResultBuilders.
Building tools and bridging technologies are my passion.
Anyone want to leverage Omnigraffle as a programming tool? Reverse engineering the file format and writing plugins are a current project.