Skip to content

Commit a3b677d

Browse files
committed
Remove target from code links
1 parent ec5b0b9 commit a3b677d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/mdx/dev/content/comment-annotations.mdx

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ And now we introduce two more annotations: `link` and `label`
5656

5757
```js focus=4,8
5858
function lorem(ipsum, dolor = 1) {
59+
// link[15:19] #bash-like-comments
5960
const sit = ipsum == null && 0
6061
dolor = sit - amet(dolor)
6162
// link[16:26] https://github.com/code-hike/codehike
@@ -69,7 +70,7 @@ function adipiscing(...elit) {
6970
}
7071
```
7172

72-
Bash like comments
73+
<h3 id="bash-like-comments">Bash like comments</h3>
7374

7475
```python
7576
def lorem(ipsum, dolor = 1):

packages/mdx/src/mdx-client/annotations.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ function CodeLink({
201201
return (
202202
<a
203203
href={url}
204-
target="_blank"
205-
rel="noopener noreferrer"
206204
title={title}
207205
style={{
208206
textDecoration: "underline",

0 commit comments

Comments
 (0)