@mermaid-js/mermaid-cli 8.13.5 → 8.13.6

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/index.bundle.js CHANGED
@@ -278,7 +278,7 @@ _asyncToGenerator(function* () {
278
278
 
279
279
  if (/\.md$/.test(input)) {
280
280
  const diagrams = [];
281
- const outDefinition = definition.replaceAll(mermaidChartsInMarkdownRegexGlobal, mermaidMd => {
281
+ const outDefinition = definition.replace(mermaidChartsInMarkdownRegexGlobal, mermaidMd => {
282
282
  const md = mermaidChartsInMarkdownRegex.exec(mermaidMd)[1]; // Output can be either a template image file, or a `.md` output file.
283
283
  // If it is a template image file, use that to created numbered diagrams
284
284
  // I.e. if "out.png", use "out-1.png", "out-2.png", etc