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

pipe-like

⚠️ By default, this rule reports plain-text | in table cells and link texts as warnings.

Options

double

❌ By default, this rule reports plain-text || in table cells as errors. This can be configured by providing a double option with a severity value.

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

{|
|
Foo || Bar
|}

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

{|
|
Foo || Bar
|}

link

This option can be configured to specify the severity of plain-text | in link texts.

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

[Foo](/bhsd-harry/wikiparser-node/wiki/Bar|Baz)

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

[Foo](/bhsd-harry/wikiparser-node/wiki/Bar|Baz)

td

This option can be configured to specify the severity of plain-text | in table cells.

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

{|
|| Foo | Bar
|}

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

{|
|| Foo | Bar
|}