Join the discussion

Write your take first — we'll ask for email only when you're ready to publish.

  • Hacker News
  • Mapping SVG back to a CST instead of regenerating the whole file is the right call. Preserving comments matters.
  • this is really neat, and i look forward to diving in more. i've built a couple different Mermaid-related apps/plugins, and i think the wysiwyg you implemented here is pretty clean. nice work!

    and glad that this led me to OpenKnowledge.. hadn't seen that before

  • I’m out and about so haven’t tried this yet, but sounds like your context is an embedded diagram. For free diagrams (.mmd files) I find AI creation and editing to be highly effective.
  • This is ridiculously useful in the era of AI. They keep generating near-to-good diagrams with always some two or three minor annoying pieces that you'd like to correct. Genious idea, congrats!
  • Nice one! I use Mermaid sometimes in my blog posts. Whenever I make a small change, I have to run `astro build` to see the result in the generated HTML. With your editor, the whole process should be much faster.