test: Add E2E test for unsupported markdown

This commit is contained in:
Sidharth Vinod
2025-08-14 14:48:37 +05:30
parent d74013c642
commit 7af6723ac0

View File

@@ -1164,4 +1164,20 @@ end
`
);
});
it('should render raw strings for unsuported markdown', () => {
imgSnapshotTest(
`flowchart TB
mermaid{"What is\nyourmermaid version?"} --> v10["<11"] --"\`<**1**1\`"--> fine["No bug"]
mermaid --> v11[">= v11"] -- ">= v11" --> broken["Affected by https://github.com/mermaid-js/mermaid/issues/5824"]
subgraph subgraph1["\`How to fix **fix**\`"]
broken --> B["B"]
end
githost["Github, Gitlab, BitBucket, etc."]
githost2["\`Github, Gitlab, BitBucket, etc.\`"]
a["1."]
b["- x"]
`
);
});
});