@astrojs/starlight 0.37.4 → 0.37.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @astrojs/starlight
|
|
2
2
|
|
|
3
|
+
## 0.37.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3675](https://github.com/withastro/starlight/pull/3675) [`0ba556d`](https://github.com/withastro/starlight/commit/0ba556d7d49dd4904f8aa8524c105bf1ceeec85c) Thanks [@controversial](https://github.com/controversial)! - Excludes the accessible labels for heading anchor links from Pagefind results
|
|
8
|
+
|
|
3
9
|
## 0.37.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -48,6 +48,6 @@ const accessibleLabel = Astro.locals.t('heading.anchorLabel', {
|
|
|
48
48
|
d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z"
|
|
49
49
|
></path></svg
|
|
50
50
|
></span
|
|
51
|
-
><span class="sr-only" set:text={accessibleLabel} /></a
|
|
51
|
+
><span class="sr-only" data-pagefind-ignore="" set:text={accessibleLabel} /></a
|
|
52
52
|
></div
|
|
53
53
|
>
|
|
@@ -50,7 +50,10 @@ export default function rehypeAutolinkHeadings({
|
|
|
50
50
|
type: 'element',
|
|
51
51
|
tagName: 'a',
|
|
52
52
|
properties: { class: 'sl-anchor-link', href: '#' + String(node.properties.id) },
|
|
53
|
-
children: [
|
|
53
|
+
children: [
|
|
54
|
+
AnchorLinkIcon,
|
|
55
|
+
h('span', { class: 'sr-only', 'data-pagefind-ignore': true }, accessibleLabel),
|
|
56
|
+
],
|
|
54
57
|
}
|
|
55
58
|
);
|
|
56
59
|
|