Skip to content

Commit

Permalink
Merge pull request #231 from aloisklink/dependabot/npm_and_yarn/svgdo…
Browse files Browse the repository at this point in the history
…m-0.1.19

chore(deps): bump svgdom from 0.1.14 to 0.1.19
  • Loading branch information
aloisklink authored Nov 2, 2024
2 parents 44f4b19 + 8270c32 commit 98b1d60
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 986 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Support svgdom 0.1.17 or later.

## [3.0.0] - 2024-10-13

### BREAKING CHANGES
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const { readFile } = require("fs/promises");
const puppeteer = require("puppeteer");

const { setSvgBbox, validSVG } = require("./src/svg.js");

const PLUGIN_NAME = "remark-mermaid-dataurl";

/**
Expand Down Expand Up @@ -136,6 +134,8 @@ async function transformMermaidNode(
try {
// eslint-disable-next-line node/no-unsupported-features/es-syntax, node/no-missing-import
const { renderMermaid } = await import("@mermaid-js/mermaid-cli");
// eslint-disable-next-line node/no-unsupported-features/es-syntax
const { setSvgBbox, validSVG } = await import("./src/svg.mjs");
const { title, desc, data } = await renderMermaid(
browser,
value,
Expand Down
Loading

0 comments on commit 98b1d60

Please sign in to comment.