format leakage - bhsd-harry/wikiparser-node GitHub Wiki

format-leakage

⚠️ By default, this rule reports format leakage in the TOC because of unclosed apostrophes or formatting tags in the header as warnings.

Options

apostrophe

This option can be configured to specify the severity of unclosed apostrophes in the header.

Examples of incorrect code for { "format-leakage": [ 0, { "apostrophe": 2 } ] }:

==''Foo==

Examples of correct code for { "format-leakage": [ 2, { "apostrophe": 0 } ] }:

==''Foo==

tag name

This rule can be configured for specific formatting HTML tags by providing an object with the tag name as the key and the severity as the value.

Examples of incorrect code for { "format-leakage": [ 0, { "i": 2 } ] }:

==<i>Foo==

Examples of correct code for { "format-leakage": [ 2, { "i": 0 } ] }:

==<i>Foo==