starlight-links-validator 0.17.1 → 0.17.2
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 +6 -0
- package/libs/remark.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# starlight-links-validator
|
|
2
2
|
|
|
3
|
+
## 0.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#115](https://github.com/HiDeoo/starlight-links-validator/pull/115) [`b042c61`](https://github.com/HiDeoo/starlight-links-validator/commit/b042c61d479ad6584a4065bf84dadb6f3078145a) Thanks [@trueberryless](https://github.com/trueberryless)! - Fixes validation issue for links to Starlight page's title anchor, e.g. `/getting-started/#_top`.
|
|
8
|
+
|
|
3
9
|
## 0.17.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/libs/remark.ts
CHANGED
|
@@ -49,7 +49,7 @@ export const remarkStarlightLinksValidator: Plugin<[RemarkStarlightLinksValidato
|
|
|
49
49
|
const slug: string | undefined =
|
|
50
50
|
typeof file.data.astro?.frontmatter?.['slug'] === 'string' ? file.data.astro.frontmatter['slug'] : undefined
|
|
51
51
|
|
|
52
|
-
const fileHeadings: string[] = []
|
|
52
|
+
const fileHeadings: string[] = ['_top']
|
|
53
53
|
const fileLinks: Link[] = []
|
|
54
54
|
const fileDefinitions = new Map<string, string>()
|
|
55
55
|
|