Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: publish v1.1.0 of remark-mermaid-dataurl
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