Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid diagrams can be displayed within Markdown #372

Closed
github-product-roadmap opened this issue Jan 12, 2022 · 1 comment
Closed

Mermaid diagrams can be displayed within Markdown #372

github-product-roadmap opened this issue Jan 12, 2022 · 1 comment
Labels
all Product SKU: All cloud Available on Cloud ga Feature phase: Generally available shipped Shipped

Comments

@github-product-roadmap
Copy link
Collaborator

Summary

Mermaid is an incredibly popular Markdown-inspired syntax used to visualize workflows, software architecture, and abstract concepts in documentation. Support for displaying Mermaid diagrams has appeared on GitHub's top list of feature requests since 2015. In its absence, many developers simply added screenshots to their Markdown. Today, we're excited to add native support for Mermaid wherever Markdown is supported (e.g., issues, repositories, discussions, gists).

Intended Outcome

With this feature, GitHub will support Mermaid diagrams within Markdown fields and files.

How will it work?

Just as language-specific code blocks can be added to Markdown, you'll be able to add a Mermaid diagram using a code block that specifies mermaid as its language identifier. For example:

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

The Markdown code block above uses Mermaid syntax to display this flowchart in the rendered Markdown:

image

Another example from the Mermaid website shows how straightforward text can be used to create rich diagrams:

```mermaid
sequenceDiagram
    autonumber
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts!
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!
```

The Markdown code block above would display this sequence diagram in the rendered Markdown:

For more information about Mermaid, visit its website or its open-source repository.

@github github locked and limited conversation to collaborators Jan 12, 2022
@github-product-roadmap github-product-roadmap added all Product SKU: All cloud Available on Cloud code ga Feature phase: Generally available labels Jan 12, 2022
@Sid-ah Sid-ah moved this to Q1 2022 – Jan-Mar in GitHub Public Roadmap Jan 12, 2022
@ankneis
Copy link
Collaborator

ankneis commented Feb 14, 2022

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
all Product SKU: All cloud Available on Cloud ga Feature phase: Generally available shipped Shipped
Projects
Archived in project
Development

No branches or pull requests

3 participants