Preview Sequence Diagrams (previewseqdiag-vscode) is an extension for vscode specialized for the preview function of mscgen and mermaid.
- Migrate to Mermaid v12 while preserving the classic preview appearance by default.
- Ship a rebuilt renderer with patched dependencies and safer handling of diagram text and filenames.
- Require VS Code 1.100.0 or later.
- Prune obsolete root-level VSIX artifacts for the 0.8 release line.
- Confirm Mermaid is up to date with the latest v11 release.
- Fix dependency vulnerabilities.
- Update Mermaid to the latest v11 release.
- Confirm npm audit reports no vulnerabilities.
- Update Mermaid to the latest v11 release.
- Confirm npm audit reports no vulnerabilities.
- Confirm Mermaid is up to date with the latest v11 release.
- Confirm npm audit reports no vulnerabilities.
- Update Mermaid to the latest v11 release.
- Fix dependency vulnerabilities.
- Update Mermaid to the latest v11 release.
- Confirm npm audit reports no vulnerabilities.
- Prune obsolete root-level VSIX artifacts for the 0.7 release line.
- Confirm Mermaid is up to date with the latest v11 release.
- Fix dependency vulnerabilities.
- Update Mermaid to the latest v11 release.
- Confirm npm audit reports no vulnerabilities.
- Update Mermaid to the latest v11 release.
- Fix dependency vulnerabilities.
- Fix dependency vulnerabilities.
- Update Mermaid to the latest v11 release.
- Simplify preview update flow and reduce structural duplication.
- Remove obsolete document-provider indirection and
rxdependency.
- Support for Mermaid v11 syntax.
- Support for Mermaid v10 syntax.
- 🎉 Save image As PNG/PNG*/JPG/SVG, Copy to Clpboard (PNG)
- 🎉 Force removal of unexpected vertical margins generated by mermaid's library.
Version 0.9.0 and later require VS Code 1.100.0 or newer for Mermaid v12's ES2024 browser runtime. Development builds require Node.js 22.12.0 or newer.
- Support to preview of Mermaid format.
- For files with the
.mmd,.mermaidextension.
- For files with the
- Support to preview of MscGen, MsGenny format.
- For files with the
.mscextension.
- For files with the
- Save image As PNG/PNG*/JPG/SVG, Copy to Clpboard (PNG)
- PNG*: The SVG data generated by mermaid's library does not include a background color. The 'PNG*' button to generate a PNG image with a specified background color as you see it.
- Force removal of unexpected vertical margins generated by mermaid and mscgen Preview libraries.
- In you
.mmdfile, you can to import an other file inside, this following:
%% import: my-file.mmd
This is usefull to avoid multipicate the same code on many files.
- Migrate to Mermaid v12.
- mermaid
11.17.2to12.2.0 - Require VS Code
1.100.0or later for the ES2024 renderer. Development builds require Node.js22.12.0or later. - Preserve the classic appearance, Dagre layout, and configured preview theme by default.
- mermaid
- Fix renderer security and initialization.
- Build the offline Mermaid browser bundle from the audited dependencies instead of copying the upstream prebuilt bundle.
- Include patched DOMPurify
3.4.17and KaTeX0.18.10in the shipped renderer. - Load Mermaid before initialization and render explicitly with strict security settings.
- Keep Mermaid/Mscgen source, preview settings, and download filenames from breaking out into executable HTML or JavaScript.
- Add webview security regression tests.
- Resolve dependency vulnerabilities.
- dompurify
3.4.16to3.4.17 - katex
0.16.47to0.18.10 - fast-uri
3.1.8to3.1.9 - serialize-javascript
7.0.5to7.1.4 - Confirm
npm auditreports 0 vulnerabilities.
- dompurify
- Package release artifact.
- Generate
previewseqdiag-vscode-0.9.0.vsix
- Generate
- Prune obsolete root-level release artifacts.
- Remove
previewseqdiag-vscode-0.8.0.vsixthroughpreviewseqdiag-vscode-0.8.4.vsix, retaining0.8.5for the 0.8 release line.
- Remove
- Update dependencies.
- Confirm mermaid is up to date at
11.17.2, the latest compatible v11 release. - ts-loader
9.5.4to9.6.2
- Confirm mermaid is up to date at
- Resolve dependency vulnerabilities.
- brace-expansion
1.1.18to1.1.21,5.0.9to5.0.12 - @humanfs/node
0.16.7to0.16.8 - baseline-browser-mapping
2.10.0to2.11.27 - browserslist
4.28.1to4.29.3 - dompurify
3.4.13to3.4.16 - fast-uri
3.1.5to3.1.8 - js-yaml
4.3.1to4.3.2 - Confirm
npm auditreports 0 vulnerabilities.
- brace-expansion
- Package release artifact.
- Generate
previewseqdiag-vscode-0.8.5.vsix
- Generate
- Update dependencies.
- mermaid
11.17.0to11.17.2
- mermaid
- Confirm dependency security status.
- Confirm
npm auditreports 0 vulnerabilities.
- Confirm
- Package release artifact.
- Generate
previewseqdiag-vscode-0.8.4.vsix
- Generate
- Update dependencies.
- mermaid
11.16.1to11.17.0 - @mermaid-js/parser
1.2.0to1.2.1 - Add fastdom
1.0.12and strictdom1.0.1as Mermaid dependencies.
- mermaid
- Confirm dependency security status.
- Confirm
npm auditreports 0 vulnerabilities.
- Confirm
- Package release artifact.
- Generate
previewseqdiag-vscode-0.8.3.vsix
- Generate
- Confirm Mermaid is up to date.
- mermaid remains at
11.16.1
- mermaid remains at
- Confirm dependency security status.
- Confirm
npm auditreports 0 vulnerabilities.
- Confirm
- Package release artifact.
- Generate
previewseqdiag-vscode-0.8.2.vsix
- Generate
- Update dependencies.
- mermaid
11.16.0to11.16.1 - eslint
9.39.4to9.39.5 - @eslint/eslintrc
3.3.5to3.3.6 - @eslint/js
9.39.4to9.39.5 - ajv
6.14.0to6.15.0
- mermaid
- Resolve dependency vulnerabilities.
- brace-expansion
1.1.13to1.1.18,5.0.6to5.0.9 - dompurify
3.4.11to3.4.13 - fast-uri
3.1.2to3.1.5 - js-yaml
4.2.0to4.3.1 - Confirm
npm auditreports 0 vulnerabilities.
- brace-expansion
- Package release artifact.
- Generate
previewseqdiag-vscode-0.8.1.vsix
- Generate
- Update dependencies.
- mermaid
11.15.0to11.16.0 - @mermaid-js/parser
1.1.1to1.2.0 - cytoscape
3.33.1to3.34.0 - dayjs
1.11.19to1.11.21 - katex
0.16.37to0.16.47
- mermaid
- Resolve dependency vulnerabilities.
- Confirm
npm auditreports 0 vulnerabilities.
- Confirm
- Package release artifact.
- Generate
previewseqdiag-vscode-0.8.0.vsix
- Generate
- Prune obsolete root-level release artifacts.
- Remove
previewseqdiag-vscode-0.7.0.vsix
- Remove
- Update dependencies.
- Confirm mermaid is up to date at
11.15.0
- Confirm mermaid is up to date at
- Resolve dependency vulnerabilities.
- dompurify
3.4.1to3.4.11 - brace-expansion
5.0.5to5.0.6 - js-yaml
4.1.1to4.2.0 - Confirm
npm auditreports 0 vulnerabilities.
- dompurify
- Package release artifact.
- Generate
previewseqdiag-vscode-0.7.1.vsix
- Generate
- Update dependencies.
- mermaid
11.14.0to11.15.0 - @mermaid-js/parser
1.1.0to1.1.1
- mermaid
- Resolve dependency vulnerabilities.
- Confirm
npm auditreports 0 vulnerabilities.
- Confirm
- Package release artifact.
- Generate
previewseqdiag-vscode-0.7.0.vsix
- Generate
- Update dependencies.
- Confirm mermaid is up to date at
11.14.0
- Confirm mermaid is up to date at
- Fix dependency vulnerabilities.
- fast-uri
3.1.0to3.1.2
- fast-uri
- Package release artifact.
- Generate
previewseqdiag-vscode-0.6.5.vsix
- Generate
- Fix dependency vulnerabilities.
- dompurify
3.3.2to3.4.1 - lodash-es
4.17.23to4.18.1 - langium
4.2.1to4.2.2 - chevrotain and @chevrotain packages
11.1.2to12.0.0 - chevrotain-allstar
0.3.1to0.4.1 - uuid
11.1.0to14.0.0
- dompurify
- Package release artifact.
- Generate
previewseqdiag-vscode-0.6.4.vsix
- Generate
- Update dependencies.
- mermaid
11.13.0to11.14.0 - @typescript-eslint/eslint-plugin
8.56.1to8.58.0 - @typescript-eslint/parser
8.56.1to8.58.0
- mermaid
- Fix dependency vulnerabilities.
- serialize-javascript
7.0.4to7.0.5 - brace-expansion
1.1.12to1.1.13,5.0.4to5.0.5
- serialize-javascript
- Package release artifact.
- Generate
previewseqdiag-vscode-0.6.3.vsix
- Generate
- Fix dependency vulnerabilities.
- flatted
3.3.4to3.4.2 - picomatch
2.3.1to2.3.2,4.0.3to4.0.4
- flatted
- Update dependencies.
- mermaid
11.12.3to11.13.0
- mermaid
- Update dependencies.
- mermaid
11.2.1to11.12.3 - typescript
4.9.4to5.9.3
- mermaid
- Fix dependency vulnerabilities.
- Update build toolchain dependencies to current secure versions.
- Remove unused test and build-only packages that were pulling vulnerable transitive modules.
- Migrate ESLint configuration to
eslint.config.jsfor ESLint v9.
- Simplify structure for maintenance.
- Replace
TextDocumentContentProvider-style indirection with direct webview rendering. - Remove shared hidden state from snippet generation and pass preview context explicitly.
- Replace
Rx-based debounce with a native timer-based implementation. - Apply Mermaid fixed theme configuration during initialization.
- Replace
- Add maintainable unit tests.
- Add
node:testcoverage for preview logic and Mermaid import expansion. - Add
npm testscript and align TypeScript compiler libs for test compilation.
- Add
- Support for Mermaid v11 syntax.
- Update dependencies.
- mermaid
10.9.1from11.2.1 - mscgenjs
7.0.0from7.0.2 - mscgenjs-inpage
4.0.5from5.0.1 - Update for NPM package vulnerabilities.
- mermaid
- Update dependencies.
- mermaid
10.3.1from10.9.1 - mscgenjs
6.0.2from7.0.0 - Update for NPM package vulnerabilities.
- mermaid
- Support for Mermaid v10 syntax.
- Update dependencies.
- mermaid
10.3.1from9.3.0 - Update for NPM package vulnerabilities.
- mermaid
- Update dependencies.
- mermaid
9.3.0from9.2.2
- mermaid
- Update dependencies.
- mermaid
9.2.2from9.1.3 - and more...(webpack, typescript and for devs)
- mermaid
- Update dependencies.
- mermaid
9.1.3from8.14.0
- mermaid
- Add new features.
- Save image as PNG/PNG*/JPG/SVG, Copy to Clpboard (PNG)
- PNG*: The SVG data generated by mermaid's library does not include a background color. The 'PNG*' button to generate a PNG image with a specified background color as you see it.
- Save image as PNG/PNG*/JPG/SVG, Copy to Clpboard (PNG)
- Force removal of unexpected vertical margins generated by mermaid and mscgen Preview libraries.
- Update dependencies.
- mermaid
8.14.0from8.13.8 - mscgenjs-inpage
4.0.4from3.0.3 - etc.
- mermaid
- Update dependencies.
- mermaid
8.13.8from8.9.2 - mscgenjs
6.0.1from5.0.4 - mscgenjs-inpage
4.0.4from3.0.3
- mermaid
- Bugfix: Support vscode ^1.54.0
- Refactoring: A great many things...
- Update dependencies.
- mermaid
8.9.2from8.4.7 - mscgenjs
5.0.4from4.0.2 - etc.
- mermaid
- Update dependencies.
- mermaid
8.4.7from8.4.4 - Thank you for PR, https://github.com/XavierBoubert
- #22
- mermaid
- Bugfix: Webpack support was broken and fixed from 0.2.2.
- Change of link to official mermaid site.
- Thank you for PR, https://github.com/silenti0
- #16
- Update dependencies to latest.
mermaid 8.4.4,mscgenjs 4.0.2,mscgenjs-inpage 2.0.12.
- Update document. only...
- Support vscode ^1.33.0
- Update dependencies.
- Add Special feature.
- In the
.mmdfile, it corresponds to the special notation of importing external files.
- In the
- Update latest modules.
mermaid 8.0.0-rc.8,mscgenjs 1.15.2,mscgenjs-inpage 1.13.1.
- Support mermaid previewing on Mac.
- In order to implement this function, I disabled the function of automatically selecting styles according to theme.
- Fixed configuration intellisense problem
- Change configuration format. (Backward compatible) see -> Settings
- Refactoring.
- Initial release.
- SVG or PNG downloading is not supported. If you want to download by SVG or PNG, It is good to use lang's official websites. see, Appendix
- In the preview of Mermaid's Dark and Neutral style, some displays become black.
This extension contributes the following User Settings:
-
previewSeqDiag.mermaid.fixedStyle: Setting to force usage for Mermaid's preview's rendering style.- Set
dark,forestorneutral(default isforest, is force recommended. The dark or neutral theme of Mermaid 7.0.3 does incomplete rendering.)
- Set
-
previewSeqDiag.mermaid.fixedBackgroundColor: Setting to force usage for Mermaid's preview's background colo.- Set
#rrggbbe.g. #ffffff,transparent(default is#fafaf6)
- Set
-
previewSeqDiag.mscgen.fixedNamedStyle: Setting to force usage for Mscgen, MsGenny, xu's preview's rendering style.- Set
lazy,classic,cygne,pegasseorfountainpen(default iscygne). (see Name Style)
- Set
-
previewSeqDiag.mscgen.horizontalAlignment: Setting to force usage for Mscgen's rendering style. Indicates where an element should be displayed on the horizontal axis relative to the allocated layout slot of the peview window.- Set
fixedorstretch(default isstretch)
- Set
e.g. add to User Settings,
"previewSeqDiag": {
"mermaid": {
"fixedBackgroundColor": "#f6f6ff",
"fixedStyle": "dark"
},
"mscgen": {
"fixedNamedStyle": "fountainpen",
"horizontalAlignment": "fixed"
}
}result is.
- searKing/preview-vscode
- @XavierBoubert
- Thanks PR for Great Special feature
- @silenti0
- Thanks PR for Updates
- knsv/mermaid
- mermaid docs
- mermaid live editor you can download by SVG.





