Readit News logoReadit News
knsv commented on Show HN: Mermaid Chart VS Code Plugin: Mermaid.js Diagrams in Visual Studio Code   docs.mermaidchart.com/blo... · Posted by u/msfi
saratogacx · 8 months ago
I use a similar plugin for graphviz and PNG and SVG output are used often when exporting the graphs from the tool.
knsv · 8 months ago
Adding a ticket for this :)
knsv commented on Show HN: Mermaid Chart VS Code Plugin: Mermaid.js Diagrams in Visual Studio Code   docs.mermaidchart.com/blo... · Posted by u/msfi
oigursh · 8 months ago
Is there a visual interface for Mermaid?

I can blast out auto-reflowing flowcharts in Flying Logic on a keyboard but it's moved to a subscription model that doesn't make sense for my irregular use.

Seeing the connections in real time really helps with my thought process.

knsv · 8 months ago
Using the extension, you can see your changes from the Mermaid Code rendered as a diagram in real-time.

If you also want to interact with the diagram itself to make the changes, you can do that using the Mermaid Chart Playground: https://www.mermaidchart.com/play

knsv commented on Show HN: Mermaid Chart VS Code Plugin: Mermaid.js Diagrams in Visual Studio Code   docs.mermaidchart.com/blo... · Posted by u/msfi
_blk · 8 months ago
Thanks for the clarification! Glad you can cater to both worlds.

For diagramming and even UI prototyping I keep getting back to plain old ascii drawings though. Asciiflow.com is fantastic. I just wish they had vim keybindings. It's also great to embed in .md too. Could mermaid generate ascii? It just seems easier to comprehend and doesn't need a separate renderer.

knsv · 8 months ago
No it can not. That's an interesting idea, though, but one would need to navigate/differentiate between the rendered output text and the Mermaid diagram code.
knsv commented on Show HN: Mermaid Chart VS Code Plugin: Mermaid.js Diagrams in Visual Studio Code   docs.mermaidchart.com/blo... · Posted by u/msfi
mubou · 8 months ago
The problem is that a lot of people will google mermaid chart, or come across an extension like this, and find a site that looks like the official website and docs but isn't; it's a paid product with no relation that's simply profiting off of the name. That's deceptive, regardless of whether it's "fair use" or not.

Honestly, I'm surprised anyone on HN would defend that sort of behavior.

knsv · 8 months ago
Hi, I wanted to add some clarification on this topic.

I am Knut Sveidqvist, the inventor of Mermaid and creator of the Mermaid open-source project. I'm also the co-founder of Mermaid Chart.

To address the confusion: Mermaid Chart is not a separate entity "profiting off the name" - it's a commercial offering I created to help sustain the open-source project. Working on Mermaid during evenings and weekends became unsustainable as the project grew. Mermaid Chart allows me to work on what I love full-time while providing resources back to the open-source project. This support will continue to grow as our business matures.

I appreciate your concern about protecting users from deceptive practices. In this case, there is a direct connection between the open-source project and the commercial offering, created by the same founding team.

knsv commented on Show HN: Mermaid Chart VS Code Plugin: Mermaid.js Diagrams in Visual Studio Code   docs.mermaidchart.com/blo... · Posted by u/msfi
vimax · 8 months ago
Does this let you export rendered diagrams at html or pdf? The Markdown Preview Enhanced plug-in is the only plugin I found to do this easily lady time I was looking .
knsv · 8 months ago
More good input! Appreciate it. What about PNG export? It seems more direct than a PDF to me.
knsv commented on Show HN: Mermaid Chart VS Code Plugin: Mermaid.js Diagrams in Visual Studio Code   docs.mermaidchart.com/blo... · Posted by u/msfi
ashikns · 8 months ago
I have been using it lightly. But the biggest problem (for me) is that I cannot use custom icons. I have to use Azure specific icons in a lot of diagrams. Mermaid's support for custom icons is only via iconify packs as far as I can tell. Is it possible to refer to icons in a local directory, such as "./images/storage.png"?
knsv · 8 months ago
That's good feedback. The icons are not bundled into Mermaid itself due to copyright concerns. The approach you suggest would make sense, though.
knsv commented on Show HN: Mermaid Chart VS Code Plugin: Mermaid.js Diagrams in Visual Studio Code   docs.mermaidchart.com/blo... · Posted by u/msfi
thefourthchime · 8 months ago
Is this new? I remember playing with a mermaid plugin like a year ago.
knsv · 8 months ago
You are right! A light plugin was released then.

Now, we have added lots of new functionality. Proper editing with syntax highlighting, etc. Apart from that, we have also added integration with GitHub Copilot, so you can generate diagrams from code and continue to edit them using the extension.

knsv commented on Show HN: GUI for editing Mermaid class diagrams   docs.mermaidchart.com/blo... · Posted by u/knsv
mlhpdx · a year ago
Do Mermaid class diagrams support generics (parameterized types)?
knsv · a year ago
Yes
knsv commented on Show HN: GUI for editing Mermaid class diagrams   docs.mermaidchart.com/blo... · Posted by u/knsv
Celeo · a year ago
Heads up: the "Theme Customization in Toolbar" image isn't rendered.

Thanks for sharing!

knsv · a year ago
Thanks, I uploaded it!
knsv commented on Show HN: GUI for editing Mermaid class diagrams   docs.mermaidchart.com/blo... · Posted by u/knsv
tomovo · a year ago
Is there a demo available without creating an account?
knsv · a year ago
Yes! You can use this in the free mermaid playground: https://www.mermaidchart.com/play

u/knsv

KarmaCake day423December 2, 2022
About
Creator of Mermaid, CTO and founder of Mermaid Chart
View Original