All Projects → vstirbu → Vscode Mermaid Preview

vstirbu / Vscode Mermaid Preview

Licence: mit
Previews Mermaid diagrams

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vscode Mermaid Preview

Asciidoctor Kroki
Asciidoctor.js extension to convert diagrams to images using Kroki!
Stars: ✭ 55 (-50.45%)
Mutual labels:  hacktoberfest, uml, diagram
Arkit
JavaScript architecture diagrams and dependency graphs
Stars: ✭ 671 (+504.5%)
Mutual labels:  uml, diagram
Kotlin Language Server
Intelligent Kotlin support for any editor/IDE using the Language Server Protocol
Stars: ✭ 650 (+485.59%)
Mutual labels:  hacktoberfest, vscode
Uml Diagram For Python Design Pattern Examples
UML diagram list of GoF design pattern examples written in Python.
Stars: ✭ 40 (-63.96%)
Mutual labels:  uml, diagram
Aws Plantuml
PlantUML sprites, macros, and other includes for AWS components.
Stars: ✭ 565 (+409.01%)
Mutual labels:  uml, diagram
Vetur
Vue tooling for VS Code.
Stars: ✭ 5,421 (+4783.78%)
Mutual labels:  hacktoberfest, vscode
Protobuf Uml Diagram
Create UML diagrams from Protobuf compiled .proto files using Python
Stars: ✭ 17 (-84.68%)
Mutual labels:  uml, diagram
T Rec Rs
Blazingly fast terminal recorder that generates animated gif images for the web written in rust
Stars: ✭ 361 (+225.23%)
Mutual labels:  hacktoberfest, vscode
Css Flexbox Cheatsheet
VS Code extension that lets you open a CSS Flexbox cheatsheet directly in the editor.
Stars: ✭ 87 (-21.62%)
Mutual labels:  hacktoberfest, vscode
Vis Network
💫 Display dynamic, automatically organised, customizable network views.
Stars: ✭ 1,311 (+1081.08%)
Mutual labels:  hacktoberfest, diagram
Vuerd Vscode
ERD Editor vscode extension
Stars: ✭ 95 (-14.41%)
Mutual labels:  vscode, diagram
State Machine Cat
write beautiful state charts 🙀
Stars: ✭ 509 (+358.56%)
Mutual labels:  hacktoberfest, uml
Themer
themer is inspired by trevordmiller/nova and chriskempson/base16.
Stars: ✭ 4,483 (+3938.74%)
Mutual labels:  hacktoberfest, vscode
Cobalt2 Vscode
Cobalt2 Theme for VS Code
Stars: ✭ 632 (+469.37%)
Mutual labels:  hacktoberfest, vscode
Gaphor
Gaphor is the simple modeling tool
Stars: ✭ 386 (+247.75%)
Mutual labels:  uml, diagram
Kroki
Creates diagrams from textual descriptions!
Stars: ✭ 774 (+597.3%)
Mutual labels:  hacktoberfest, uml
Pytm
A Pythonic framework for threat modeling
Stars: ✭ 363 (+227.03%)
Mutual labels:  hacktoberfest, diagram
Jdl Studio
JDL Studio is an online JHipster Domain Language visual editor
Stars: ✭ 365 (+228.83%)
Mutual labels:  hacktoberfest, uml
Vscode Yuml
yUML extension for Visual Studio Code
Stars: ✭ 102 (-8.11%)
Mutual labels:  vscode, uml
Dotfiles
Awesome personal dotfiles
Stars: ✭ 99 (-10.81%)
Mutual labels:  hacktoberfest, vscode

Mermaid diagram previewer for Visual Studio Code

Greenkeeper badge

The plugin enables live editing and visualization of mermaid supported diagrams.

Related plugins:

Usage

  1. Open a file containing Mermaid diagram
  2. Choose Preview Mermaid Diagram
  3. Move cursor inside the diagram

activate

usage

Supported formats

The plugin detects mermaid diagrams in the following formats:

HTML tag

<div class="mermaid">sequenceDiagram A-->B: Works!</div>

Markdown fenced code

```mermaid
sequenceDiagram
  A-->B: Works!
```

HUGO shortcodes

{{<mermaid attr="val">}} sequenceDiagram A-->B: Works! {{</mermaid>}}

Sphinx directives

.. mermaid:: :parameters: are optional sequenceDiagram A-->B: Works!

The plugin does not preview diagrams in external files:

.. mermaid:: graphs/mygraph.mmd

Standalone Mermaid files

Files with extension .mmd with plain Mermaid diagram content:

sequenceDiagram
  A-->B: Works!

FontAwesome support

The plugin aims to be on par with the Mermaid Live Editor on handling Font Awesome icons.

Minimap

Enabling/disabling minimap rendering is controlled with the minimap setting.

Customize diagrams

Rendering

You can customize the appearance of the previewed diagrams by setting the mermaid configuration in the workspace settings:

{
  "mermaid": {
    "sequenceDiagram": {
      "mirrorActors": false
    }
  }
}

All mermaid configuration options are supported.

Theme handling

Default values

Based on the theme used in Visual Studio Code, the plugin default themes are: forest for light and dark for dark. These values can be changed with the following settings:

{
  "mermaid.vscode.light": "one of default, forest, neutral, dark",
  "mermaid.vscode.dark": "one of default, forest, neutral, dark"
}

Overriding automatic light/dark selection

Automatic theme selection can be changed with the following setting:

{
  "mermaid.theme": "one of default, forest, neutral, dark"
}

Custom theme

You can render the diagram using a custom theme by providing the following configuration properties:

{
  "mermaid.theme": null,
  "mermaid.themeCSS": "the theme as string"
}

⚠️ The value null for theme disables the automatic theme detection, so you are responsible for providing a proper theme in themeCSS for all diagrams used in the settings' scope.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].