Skip to content

Commit

Permalink
chore: publish v1.1.0 of remark-mermaid-dataurl
Browse files Browse the repository at this point in the history
Added

- Allow passing in a mermaid `configFile` as an object to
  `mermaid-cli`.
- Allow passing in a puppeteer `puppeteerConfigFile` as an
  object to `mermaid-cli`.
  This allows increasing puppeteer's timeout, or using
  `firefox` instead of `chrome`.

Fixed

- Fix wide SVGs (e.g. gitgraphs) being cut at 300px.
  Automatically replaces SVG `width=100%` to the width in pixels.
  Most browsers will cut SVGs to 300px. (closes #7)
- An error is now thrown if mermaid-cli fails to render an SVG.
  Previously, the `Promise` returned by `renderMermaidFile`
  would stall forever
  if `mermaid-cli` exited without an error code,
  and without rendering an SVG.

Dependencies

- Updated `husky` to v6.0.0 (v7.0.0 held back due to Node v10 support)
- Limit `mermaid-cli` version to `<=8.10.1`.
  This is because
  [mermaid-cli 8.10.2](https://github.com/mermaid-js/mermaid-cli/releases/tag/8.10.2)
  upgrades to [puppeteer v10.0.0](mermaid-js/mermaid-cli#128),
  which drops Node v10 support.
  • Loading branch information
aloisklink committed Jun 9, 2022
1 parent a001668 commit 18bc36f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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]

## [1.10] - 2022-06-09

### Added

- Allow passing in a mermaid `configFile` as an object to `mermaid-cli`.
Expand Down
4 changes: 2 additions & 2 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": "1.0.2",
"version": "1.1.0",
"description": "A remark plugin for Markdown that replaces mermaid graphs with dataurls",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 18bc36f

Please sign in to comment.