Skip to content

var anchor

Bhsd edited this page May 22, 2026 · 4 revisions

⚠️ By default, this rule reports anchors that may change due to changes in other parts of the page as warnings.

Examples

Examples of correct code for { "var-anchor": 2 }:

==[//example.com Example]==

Options

extLink

This option can be configured to specify the severity of anchors containing auto-numbered external links.

Examples of incorrect code for { "var-anchor": [ 0, { "extLink": 2 } ] }:

==[//example.com]==

Examples of correct code for { "var-anchor": { "extLink": 0 } }:

==[//example.com]==

ref

This option can be configured to specify the severity of anchors containing <ref>.

Examples of incorrect code for { "var-anchor": [ 0, { "ref": 2 } ] }:

==<ref>Foo</ref>==
==<ref name=Foo/>==

Examples of correct code for { "var-anchor": { "ref": 0 } }:

==<ref>Foo</ref>==
==<ref name=Foo/>==

Clone this wiki locally