diff --git a/docs/syntax/classDiagram.md b/docs/syntax/classDiagram.md
index b825f8671..d57125c84 100644
--- a/docs/syntax/classDiagram.md
+++ b/docs/syntax/classDiagram.md
@@ -255,16 +255,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
@@ -360,14 +360,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 a7c4f96c5..e2178a653 100644
--- a/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
+++ b/packages/mermaid/src/docs/.vitepress/mermaid-markdown-all.ts
@@ -31,17 +31,10 @@ ${highlight}
`;
} else if (token.info.trim() === 'mermaid') {
const key = index;
- return ` ${key}
-
WARNING
${token.content}}