Skip to content

Commit 2876415

Browse files
committed
copy edit
1 parent fd20497 commit 2876415

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

text.mdx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,25 @@ Use `#` symbols to create headers of different levels:
2424

2525
### Disabling anchor links
2626

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:
2828

29-
```mdx
30-
<Heading noAnchor>
31-
## Header without anchor link
29+
<CodeGroup>
30+
31+
```mdx React header example
32+
<Heading level={2} noAnchor>
33+
Header without anchor link
3234
</Heading>
3335
```
3436

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+
<h2 noAnchor>
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.
3646

3747
## Text formatting
3848

0 commit comments

Comments
 (0)