diff --git a/src/plugin.ts b/src/plugin.ts index 3df0384..fea722c 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -51,31 +51,26 @@ body.dark, :root[data-theme="dark"] { */ function createScript(version: string): string { return String.raw` - - `; } diff --git a/test/__snapshots__/plugin.test.ts.snap b/test/__snapshots__/plugin.test.ts.snap index 06dce14..194ce66 100644 --- a/test/__snapshots__/plugin.test.ts.snap +++ b/test/__snapshots__/plugin.test.ts.snap @@ -66,31 +66,26 @@ body.dark, :root[data-theme=\\"dark\\"] { }
- - " `; diff --git a/test/plugin.test.ts b/test/plugin.test.ts index 4872d22..4f95469 100644 --- a/test/plugin.test.ts +++ b/test/plugin.test.ts @@ -19,7 +19,7 @@ describe('MermaidPlugin', () => { const result = plugin.insertMermaidScript(input); expect(result).toMatch(''); expect(result).toMatch('mermaid.initialize({'); - expect(result).toMatch(/src="https:\/\/unpkg.com\/mermaid\@latest\/dist\/mermaid.min.js"/); + expect(result).toMatch(/import mermaid from "https:\/\/unpkg.com\/mermaid\@latest\/dist\/mermaid.esm.min.mjs";/); expect(result).toMatchSnapshot(); });