Skip to content

Commit

Permalink
chore: publish v2.0.5 of remark-mermaid-dataurl
Browse files Browse the repository at this point in the history
Fixed
=====

- Set mermaid config option `useMaxWidth` to `false` by default.
  In Mermaid v9.1.7, some graph types default to using all the
  available horizontal space.
  On many markdown renderers, this creates very large diagrams,
  so by default `remark-mermaid-dataurl` limits them to use a smaller
  amount of space (e.g. pre-v9.1.7 behaviour).

  See mermaid offical docs on the `useMaxWidth` option:
  https://mermaid-js.github.io/mermaid/#/Setup?id=usemaxwidth-1
- Fix passing `configFile` as a JS object.
  • Loading branch information
aloisklink committed Oct 9, 2022
1 parent 6efed29 commit 9a0743d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.5] - 2022-10-09

### Fixed

- Set mermaid config option
Expand Down
30 changes: 2 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remark-mermaid-dataurl",
"version": "2.0.4",
"version": "2.0.5",
"description": "A remark plugin for Markdown that replaces mermaid graphs with dataurls",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9a0743d

Please sign in to comment.