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 }:

<br

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

<br

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": [ 1, { "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": [ 1, { "invalid": 2 } ] }:

< br>
<br|>

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

< br>
<br|>
⚠️ **GitHub.com Fallback** ⚠️