var anchor - bhsd-harry/wikiparser-node GitHub Wiki

var-anchor

⚠️ 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": [ 2, { "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": [ 2, { "ref": 0 } ] }:

==<ref>Foo</ref>==
==<ref name=Foo/>==
⚠️ **GitHub.com Fallback** ⚠️