Skip to content

Commit

Permalink
fix: switch mermaid provider from unpkg to jsdelivr
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrehtrb committed Sep 21, 2024
1 parent 3194923 commit 08b77a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/mermaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = (eleventyConfig, options) => {
theme: 'default',
loadOnSave: true
};
let src = options?.mermaid_js_src || "https://unpkg.com/mermaid/dist/mermaid.esm.min.mjs";
let src = options?.mermaid_js_src || "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs";

eleventyConfig.addLiquidShortcode("mermaid_js_scripts", () => {
return `<script type="module" async>
Expand Down

0 comments on commit 08b77a8

Please sign in to comment.