Skip to content

Commit

Permalink
fix(mermaid): Pin browser url for mermaid svg output
Browse files Browse the repository at this point in the history
Newer versions of mermaid have different outputs.
  • Loading branch information
paul-sachs authored Jul 9, 2023
1 parent 69a08e8 commit 29b53ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/mdxast-mermaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type CodeMermaid = Literal<string> & {
}

/* istanbul ignore next */
const renderToSvg = async (id: string, src: string, config: MermaidConfig, url: string = 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js'): Promise<string> => {
const renderToSvg = async (id: string, src: string, config: MermaidConfig, url: string = 'https://cdn.jsdelivr.net/npm/mermaid@9.3.0/dist/mermaid.min.js'): Promise<string> => {
const puppeteer = await import('puppeteer')
let browser = await puppeteer.launch({ args: ["--no-sandbox"] })
try {
Expand Down

0 comments on commit 29b53ce

Please sign in to comment.