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.
Examples
Examples of incorrect code for { "format-leakage": 2 }
:
=='''Foo==
==<s>Foo==
Options
apostrophe
This option can be configured to specify the severity of unclosed apostrophes in the header. See also: Help:Lint errors/unclosed-quotes-in-heading.
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. See also: Help:Lint errors/missing-end-tag-in-heading.
Examples of incorrect code for { "format-leakage": [ 0, { "i": 2 } ] }
:
==<i>Foo==
Examples of correct code for { "format-leakage": [ 2, { "i": 0 } ] }
:
==<i>Foo==