Releases: HiDeoo/starlight-links-validator
[email protected]
[email protected]
[email protected]
Minor Changes
-
#118
efef54aThanks @HiDeoo! - Adds hyperlinks (OSC 8) support to validation terminal output.In supported terminals, error slugs can be conveniently used (e.g. with
Ctrl+Click,Opt+Click,Cmd+Click, or a context menu) to open the corresponding file using the default associated application.
[email protected]
Patch Changes
- #115
b042c61Thanks @trueberryless! - Fixes validation issue for links to Starlight page's title anchor, e.g./getting-started/#_top.
[email protected]
Patch Changes
- #113
3e0a88cThanks @HiDeoo! - Prevents plugin remark plugin from running on Markdown and MDX content when using the AstrorenderMarkdown()content loader API.
[email protected]
Minor Changes
-
#108
82f8ec5Thanks @HiDeoo! - Adds support for excluding links from validation using a function.When using the function syntax, the function should return
truefor any link that should be excluded from validation orfalseotherwise. The function will be called for each link to validate and will receive an object containing various properties to help determine whether to exclude the link or not.Check out the
excludeconfiguration option documentation for more details and examples.
[email protected]
Minor Changes
-
#104
cbeaa0fThanks @HiDeoo! - Ignores query strings when checking for excluded links.Previously, to exclude links with query strings, you may have needed to rely on fairly loose glob patterns, e.g.
/playground/**to exclude/playground/,/playground/?id=fooand/playground/?id=bar. With this change, excluding/playground/will ignore all query strings, so/playground/,/playground/?id=fooand/playground/?id=barwill all be excluded.
[email protected]
[email protected]
Minor Changes
-
#93
6d7174bThanks @HiDeoo! -⚠️ BREAKING CHANGE: The minimum supported version of Starlight is now version0.32.0.Please use the
@astrojs/upgradecommand to upgrade your project:npx @astrojs/upgrade
-
#100
b238cb7Thanks @HiDeoo! - Adds a newsameSitePolicyoption to configure how external links pointing to the same origin as the one configured in the Astrositeoption should be handled.The current default behavior to ignore all external links remains unchanged. This new option allows to error on such links so they can be rewritten without the origin or to validate them as if they were internal links.
-
#100
b238cb7Thanks @HiDeoo! - Adds a newcomponentsoption to define additional components and their props to validate as links on top of the built-in<LinkButton>and<LinkCard>Starlight components.
Patch Changes
- #99
56ea78cThanks @HiDeoo! - Fixes validation issue with the Astrobaseoption and theerrorOnFallbackPagesplugin option set tofalsein a multilingual project.
[email protected]
Patch Changes
- #91
1ef31b8Thanks @DaniFoldi! - Movesmdast-util-mdx-jsxpackage to non-dev dependencies to prevent issues in monorepos with hoisting disabled.