diff --git a/tests/myst-editor.spec.ts b/tests/myst-editor.spec.ts index 58dfa9b..8f48c48 100644 --- a/tests/myst-editor.spec.ts +++ b/tests/myst-editor.spec.ts @@ -129,6 +129,21 @@ test.describe.parallel("With collaboration disabled", () => { const clipboardContent = await page.evaluate(() => navigator.clipboard.readText()); expect(clipboardContent).toContain("

"); }); + + test("Mermaid diagrams", async ({page}) => { + await clearEditor(page); + await insertChangesAndCheckOutput( + page, + { + from: 0, + insert: `\`\`\`mermaid +graph TD + A-->B +\`\`\``, + }, + (html) => expect(html).toContain(" {