Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Markdown Preview LilyNew to Visual Studio Code? Get it now.
Markdown Preview Lily

Markdown Preview Lily

yuna495

| (0) | Free
Show markmap, mermaid, graphviz in markdown preview
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Preview Lily

Markdown Preview Lily extends VS Code's built-in Markdown preview to render interactive diagrams including Markmap (Mindmaps), Mermaid graphs, and Graphviz (DOT) diagrams.

  • Markdown Preview Lily
    • ✨ Features
    • 💡 Usage
      • Markmap (Mindmap)
      • Mermaid
      • Graphviz (DOT)
    • 🎨 Customization
      • Mermaid Color Theme Change
    • License

✨ Features

  • Diagram Support:

    • Markmap: Render Markdown lists as interactive, zoomable mindmaps.
    • Mermaid: Render Flowcharts, Sequence diagrams, Gantt charts, etc., with extensive customization.
    • Graphviz (DOT): Render complex graph visualizations using the DOT language (powered by WebAssembly).
  • Interactive Zoom & Pan:

    • Zoom: Mouse wheel to zoom in/out.
    • Pan: Click and drag to pan around large diagrams.
    • Toolbar: Dedicated "Reset Zoom" button for easy navigation.
  • Custom Styling:

    • Fully customizable appearance via CSS variables.
    • Includes a "Cyberpunk / Dark Neon" styling example (see below).

💡 Usage

Use standard Markdown code blocks with the appropriate language identifiers: markmap, mermaid, or graphviz (alias dot).

Markmap (Mindmap)

markmap

    ```markmap
    # Root Topic
    ## Feature A
    ### Detail 1
    ## Feature B
    ```

Mermaid

Mermaid

    ```mermaid
    flowchart LR
        A[Start] --> B{Is it working?}
        B -- Yes --> C[Great!]
        B -- No --> D[Debug]
    ```

Graphviz (DOT)

graphviz

    ```graphviz
    digraph G {
      rankdir=LR;
      node [style=filled, color="#11ff84", fontcolor="#000"];
      Start -> Process -> End;
      Process -> Start [style=dashed, label="Loop"];
    }
    ```

🎨 Customization

You can customize the look and feel of your diagrams by creating a style.css file in your workspace root or by configuring markdown.styles in your VS Code settings.

  • setting.json
"markdown.styles": ["./style.css"]

Mermaid Color Theme Change

  • settings.json Configuration
"markdown-preview-lily.mermaidTheme": "pinklily"  //default, neutral, dark, forest, base
  • Default Mermaid Theme: Pink Lily

    PinkLily Color Theme

    It is a theme with similar colors to the PinkLily color theme I created.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft