diff --git a/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts b/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
index 30f044d9881..643ce395e91 100644
--- a/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
+++ b/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
@@ -18,20 +18,7 @@ const MermaidExample = async (md: MarkdownRenderer) => {
'Missing MarkdownIt highlight function (should be automatically created by vitepress'
);
}
-
- // doing ```mermaid-example {line-numbers=5 highlight=14-17} is not supported
- const langAttrs = '';
- return `
-
Code:
-
-
- mermaid
- ${
- // html is pre-escaped by the highlight function
- // (it also adds `v-pre` to ignore Vue template syntax)
- md.options.highlight(token.content, 'mermaid', langAttrs)
- }
-