@mermaid-js/mermaid-cli 8.13.10 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -79,6 +79,12 @@ mmdc -h
79
79
  docker pull minlag/mermaid-cli
80
80
  ```
81
81
 
82
+ or pull from Github Container Registry
83
+
84
+ ```sh
85
+ docker pull ghcr.io/mermaid-js/mermaid-cli/mermaid-cli
86
+ ```
87
+
82
88
  or e.g. version 8.8.0
83
89
 
84
90
  ```sh
@@ -95,7 +101,7 @@ docker run -it -v /path/to/diagrams:/data minlag/mermaid-cli -i /data/diagram.mm
95
101
 
96
102
  ## Install locally
97
103
 
98
- Some people are [having issue](https://github.com/mermaidjs/mermaid.cli/issues/15)
104
+ Some people are [having issues](https://github.com/mermaidjs/mermaid.cli/issues/15)
99
105
  installing this tool globally. Installing it locally is an alternative solution:
100
106
 
101
107
  ```
package/index.bundle.js CHANGED
@@ -266,7 +266,7 @@ const parseMMD = /*#__PURE__*/function () {
266
266
  });
267
267
  yield page.pdf({
268
268
  path: output,
269
- printBackground: backgroundColor !== 'transparent',
269
+ omitBackground: backgroundColor === 'transparent',
270
270
  width: Math.ceil(clip.width) + clip.x * 2 + 'px',
271
271
  height: Math.ceil(clip.height) + clip.y * 2 + 'px',
272
272
  pageRanges: '1-1'
@@ -274,7 +274,7 @@ const parseMMD = /*#__PURE__*/function () {
274
274
  } else {
275
275
  yield page.pdf({
276
276
  path: output,
277
- printBackground: backgroundColor !== 'transparent'
277
+ omitBackground: backgroundColor === 'transparent'
278
278
  });
279
279
  }
280
280
  }