You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text.mdx
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,25 @@ Use `#` symbols to create headers of different levels:
24
24
25
25
### Disabling anchor links
26
26
27
-
By default, headers include clickable anchor links that allow users to link directly to specific sections. You can disable these anchor links using the `noAnchor` prop:
27
+
By default, headers include clickable anchor links that allow users to link directly to specific sections. You can disable these anchor links using the `noAnchor` prop in React or HTML headers:
28
28
29
-
```mdx
30
-
<HeadingnoAnchor>
31
-
## Header without anchor link
29
+
<CodeGroup>
30
+
31
+
```mdx React header example
32
+
<Headinglevel={2}noAnchor>
33
+
Header without anchor link
32
34
</Heading>
33
35
```
34
36
35
-
When `noAnchor` is set to `true`, the header will not display the anchor chip and clicking the header text will not copy the anchor link to the clipboard.
37
+
```mdx HTML header example
38
+
<h2noAnchor>
39
+
Header without anchor link
40
+
</h2>
41
+
```
42
+
43
+
</CodeGroup>
44
+
45
+
When `noAnchor` is used, the header will not display the anchor chip and clicking the header text will not copy the anchor link to the clipboard.
0 commit comments