All notable changes to the "mermaid-editor" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
- Revert the change for SVG badges in README
- For details, refer to this issue
- Add new feature to copy the image to clipboard directly without saving file
- Thanks to @leighmcculloch's suggestion in Issue#55
- Bump mermaid version to 9.2.0
- Bump mermaid version to 9.1.3
- Bump mermaid version to 8.13.10 (Issue#58)
- Remove syntax highlighting - Thanks to PR#59 by @rngtng
- Current syntax highlighting doesn't work fine. Some users suggested me to use vscode-mermaid-syntax-highlight and I agreed. For more detail, see Issue#41
- Fix nanoid version to 3.1.31
-
Bump mermaid version to 8.13.8
-
Removed vsce from local dependencies
- Introduced a new config
mermaid-editor.generate.quality
to set a image quality for creating images like jpeg or webp.- Related to a requirement in Issue#24.
- The attribute syntax with curly brackets like
@config{}
was deprecated. Use a new syntax with parenthesis like@config()
instead.- Related to Issue#35.
- Fixed to create svg image with the background color.
- Related to Issue#24.
- Bump some packages following a security report by Github
- Fix a bug Issue#56
- Revert vsce command dependency which was removed unexpectedly.
-
Bump mermaid-js version from 8.11.2 to 8.12.1
-
Replace Fontawesome CDN with KitCode to support the latest version without updating the extension
- Bump some packages following a security report by Github
- Bump mermaid-js version from 8.9.2 to 8.11.2
- Thanks for the headsup to Issue#47
- Bump some packages following a security report by Github
mermaid-editor.generate.scale
config is added.- Related to a requirement in Issue#17.
mermaid-editor.generate.width
andmermaid-editor.generate.height
are removed instead of the scale config.
-
- Fix an error paring atrribute in a file with CRLF.
-
- Fix generated image cropped unexpectedly. This is also related to
mermaid-editor.generate.scale
config.
- Fix generated image cropped unexpectedly. This is also related to
- Fix vulnerability report bumping mocha from 7.0.2 to 8.2.2.
- Add husky hook to check lint before push.
- Fix
Collections.Queue is not a constructor
error.- Remove typescript-collections and add simple Queue class instead.
- Fix vulnerability report from Github by updating webpack version from 4.44.1 to 5.28.0.
- Fix vulnerability report from Github by merging PR#37.
- Issue#22
mermaid-editor.preview.errorOutputOnSave
config is added.
- Issue#22
- Only error message as the result of parsing latest document is shown. Old messages is cleared when the document is edited.
- Showing error output console during editing is suppressed. This can be automatically shown only when the document is saved if
mermaid-editor.preview.errorOutputOnSave
is true.
- Fix unit test break by v0.9.1
- Issue#31
- Fix previewer bug caused by publishing with webpack.
mermaid.js
package have to be published even whennode_modules
is excluded.
- Fix previewer bug caused by publishing with webpack.
- Introduce webpack to reduce extension size
- Update mermaid.js version to 8.8.0
- Refactoring whole extension code to separate it into each functional and independent module for unit testing
- Introduce unit test for most part of the extension for future maintenance
- Change zoom interval, max and min values
- Fix generator error around canvas operation for svg tag by correcting xml serialization process. 5fd6a76
- Setup CI pipeline on Azure
- Setup extension test project configuration
- Add
azure-pipeline.yaml
to run pipeline for master - Add publish step in the pipeline to publish the extension on Azure
- Change main package manager from
npm
toyarn
- Support syntax hightlight referring to official live editor.
- Bump lodash from 4.17.15 to 4.17.19
- Revert
mermaid-editor.preview.theme
in order to support default theme config without mermaid config
- Support restoring horizontal scroll position - Thank to PR#14 by Yedid (@Yerhabe)
- Change enum from free word for
mermaid-editor.preview theme
andmermaid-editor.generate.type
VS code config - Support absolute path and
~
for HOME inmermaid-editor.preview.defaultMermaidConfig
in VS code config
<br>
tag ingraph
diagram is changed to be ignored in order to avoid image generation error reported by Issue#12. It's not expected behavior maybe but I hope it can be fixed by original library; mermaid.js- This symptom is caused by unescaped
<br>
tag in generatedsvg
tag. Current image generation depends oncanvas
which loadssvg
image. It fails to load the image if<br>
tag is contained as raw tag. It should be treated as<text>
in SVG or line feed correctly. I put a bug report for mermaid.js about it. mermaid.js Issue$1504 - Note: The patch implemented in this version is not perfect. mermaid.js seems to ignore the escape letters for
<br>
tag and render it as line feed when starting this extension or VS code with the preview. In the case, you can escape it correctly by changing active editor or editting your diagram.
- This symptom is caused by unescaped
- Newly support attribute description to specify mermaidjs config or preview background color in each
.mmd
file. For the detail, please refer to README - Add new VSCode config;
mermaid-editor.preview.defaultMermaidConfig
to setup default mermaidjs config file
- Remove
mermaid-editor.preview.theme
from VSCode configuration for Mermaid Editor extension- Instead,
mermaid-editor.preview.defaultMermaidConfig
is added
- Instead,
- Change
mermaid-editor.preview.backgroundColor
to be used as default background color for the preview - Change handling parse error
- Keep previous diagram in case of parse error during edit
- Change error message to put in output channel with the detail
- Remove tslint.config (internal)
- Remove eslint warnings (internal)
- Update dependencies by security alert from Github
- Support for keeping scroll position in preview as much as possible
- Scroll position will be kept during editing
mmd
file but will be reset when parse error is occurred so far.
- Scroll position will be kept during editing
- Display error message in preview in case of pase error
- Replace tslint with eslint
- Update dependencies by security alert from Github
- Support for
fontawesome
icons - thanks to PR#8 by Peter Garland (@pngarland)
- Update dependency 'mermaid' to version 8.4
- Migrage vscode extension test modules following by official guide
- Add new setting item:
useCurrentPath
to use current path of editing mmd file as outputPath
- Change default background color from 'transparent' to 'white'
- Update depencency 'lodash' version by github security alert
- Change default output directory in case of outside of workspace from
/
to same directory of current edit file
- Fixed generating image on windows was not worked
- Support zoom in/out for live preview
- Support background color configuration for live preview
mermaid-editor.generate.backgroundColor
is renamed tomermaid-editor.preview.backgroundColor
Support zoom in/out for live previewSupport background color configuration for live preview
- This version is a mistake. Please do not use.
- Support
jpg
andwebp
type for generating image.
- Improve preview behavior (in case vscode restart, active editor change, etc.)
- Generator became only available when the preview is activated in addition to openinig
.mmd
file.
mermaid-editor.generate.theme
is removed and combined withmermaid-editor.preview.theme
mermaid-editor.generate.format
is renamed tomermaid-editor.generate.type
pdf
type support ofmermaid-editor.generate.type
- Fixed the generator cannot export image file
- Beta release with basic functions (live preview, image generator)