Skip to content

Add mermaid support? #183

@tomhundt

Description

@tomhundt

Hey, Mermaid is a diagramming tool that adds the ability to make all sorts of charts and graphs and diagrams within Markdown files. One adds a fenced section which defines the diagram in its own domain-specific language:

```mermaid
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
```

which (even Github!) turns into a diagram:

  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
Loading

This seems useful.

At the moment, Sublime support for this is limited to this plugin which relies on mermaid-cli to do its diagram generation. The output is a .png file for each diagram. Your plugin, on the other hand, renders the rest of the markdown but just not these mermaid parts.

Any idea if it would it be possible/worthwhile (or perhaps even easy?) to integrate this with your plugin?

VSCode will give you real-time previews (if you install these:
Markdown Preview Enhanced by Yiyi Wang,
Markdown Preview Mermaid Support by Matt Bierner )

but I'm willing to trade that for PDF generation which Markdown Preview does (Sublime being my preferred editor anyway, even though it seems kind of un-hip these days).

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: triageIssue needs triage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions