diff --git a/docs/syntax/classDiagram.md b/docs/syntax/classDiagram.md
index 5870d0743..62ce5125e 100644
--- a/docs/syntax/classDiagram.md
+++ b/docs/syntax/classDiagram.md
@@ -267,16 +267,16 @@ A relationship is a general term covering the specific types of logical connecti
There are eight different types of relations defined for classes under UML which are currently supported:
-| Type | Description |
-| ------- | ------------- |
-| `<\|--` | Inheritance |
-| `\*--` | Composition |
-| `o--` | Aggregation |
-| `-->` | Association |
-| `--` | Link (Solid) |
-| `..>` | Dependency |
-| `..\|>` | Realization |
-| `..` | Link (Dashed) |
+| Type | Description |
+| ---- | ------------- | ----------- |
+| < | -- | Inheritance |
+| \*-- | Composition |
+| o-- | Aggregation |
+| --> | Association |
+| -- | Link (Solid) |
+| ..> | Dependency |
+| .. | > | Realization |
+| .. | Link (Dashed) |
```mermaid-example
classDiagram
@@ -372,14 +372,14 @@ Here is the syntax:
Where `Relation Type` can be one of:
-| Type | Description |
-| ----- | ----------- |
-| `<\|` | Inheritance |
-| `\*` | Composition |
-| `o` | Aggregation |
-| `>` | Association |
-| `<` | Association |
-| `\|>` | Realization |
+| Type | Description |
+| ---- | ----------- | ----------- |
+| < | | Inheritance |
+| \* | Composition |
+| o | Aggregation |
+| > | Association |
+| < | Association |
+| | > | Realization |
And `Link` can be one of:
diff --git a/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts b/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
index c157cf679..5dff951e9 100644
--- a/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
+++ b/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
@@ -34,10 +34,17 @@ const MermaidExample = async (md: MarkdownRenderer) => {
`;
} else if (token.info.trim() === 'mermaid') {
const key = index;
- return `
- ${key}
+ return ` ${key}
+
WARNING
${token.content}}