VS Code Visual MermaidA VS Code extension for visually editing a Mermaid fenced block in a Markdown file. It opens the block under the cursor in a local webview built from adapted Mermaid Sketcher modules and applies changes back to that block. Use
Supported fences are root-level CommonMark fences with zero to three leading spaces, at least three backticks or tildes, and a case-insensitive The extension supports VS Code desktop and remote extension hosts, version 1.85 or later. Browser extension hosts are not supported in this initial implementation. The diagram-type selector starts a new empty diagram of the selected interactive type after confirmation; it replaces the current diagram source. The webview follows VS Code's light or dark theme, including Mermaid connector colors, zoom controls, and the Elements and Properties panels. Build and verifyRequires Node.js 20 or later and npm.
Reuse and releaseThe webview copies and adapts selected first-party modules from the sibling Mermaid Sketcher project. It packages local Mermaid 12.3.0 and CodeMirror 5.65.21 assets and does not depend on the sibling project at runtime. Dependency notices and the elkjs 0.12.0 source are included in the VSIX. The extension's first-party code is licensed under the MIT License. The manifest uses Project documentationImplementation decisions, engineering guidance, and the feature plan are maintained in the repository's |