Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Mermaid diagrams can be displayed within Markdown #372

Closed
Labels
allProduct SKU: AllcloudAvailable on CloudgaFeature phase: Generally availableshippedShipped
@github-product-roadmap

Description

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 requestssince 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 aslanguage-specific code blocks can be added to Markdown, you'll be able to add a Mermaid diagram using a code block that specifiesmermaid as its language identifier. For example:

```mermaidgraph 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:

```mermaidsequenceDiagram    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 itswebsite or itsopen-source repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    allProduct SKU: AllcloudAvailable on CloudgaFeature phase: Generally availableshippedShipped

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp