tag like - bhsd-harry/wikiparser-node GitHub Wiki

tag-like

❌ By default, this rule reports plain-text < that looks like HTML or extension tags as errors.

Examples

Examples of incorrect code for { "tag-like": 2 }:

<onlyinclude
<br
<nowiki

Examples of correct code for { "tag-like": 2 }:

<text>

Options

disallowed

⚠️ By default, this rule reports disallowed HTML tags as warnings. This can be configured by providing a disallowed option with a severity value.

Examples of incorrect code for { "tag-like": [ 0, { "disallowed": 2 } ] }:

<a>

Examples of correct code for { "tag-like": [ 2, { "disallowed": 0 } ] }:

<a>

invalid

⚠️ By default, this rule reports invalid tag syntax as warnings. This can be configured by providing a invalid option with a severity value.

Examples of incorrect code for { "tag-like": [ 0, { "invalid": 2 } ] }:

< br>
<br|>

Examples of correct code for { "tag-like": [ 2, { "invalid": 0 } ] }:

< br>
<br|>

Tag name

This rule can be configured for specific or custom tags by providing an object with the tag name as the key and the severity as the value. This option is useful for reporting deprecated extension tags.

Examples of incorrect code for { "tag-like": [ 0, { "mytag": 2 } ] }:

<mytag>

Examples of correct code for { "tag-like": [ 2, { "mytag": 0 } ] }:

<mytag>
⚠️ **GitHub.com Fallback** ⚠️