Commit 5decf52
fix(site): hide external link arrow when anchor wraps an image (#3165)
* fix(site): hide external link arrow when anchor wraps an image
The external-link arrow rendered by a[target='_blank']::after was
appearing alongside image-only links (screenshots, badges like the
AWS "Launch Stack" button), producing a redundant indicator next to
content that already conveys the target.
Scope the pseudo-element to anchors that do not contain an <img> using
:not(:has(img)), and document the behavior in docs/syntax/links.md.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: add Linked images example under Links
Demonstrate the image-in-link markdown pattern and explain that the
external-link arrow is suppressed when the anchor wraps an image.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs: render a live linked-image example under Links
Use the existing bear.png asset and example.com as the destination
so readers can see the image-wrapped link (and verify the arrow
indicator is omitted) without external dependencies.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e6d0881 commit 5decf52
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
114 | 130 | | |
115 | 131 | | |
116 | 132 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments