url encoding - bhsd-harry/wikiparser-node GitHub Wiki

url-encoding

⚠️ By default, this rule reports URL encoding in internal links which are unnecessary as warnings.

Examples

Examples of incorrect code for { "url-encoding": 2 }:

[Foo%20Bar](/bhsd-harry/wikiparser-node/wiki/Foo%20Bar)

Examples of correct code for { "url-encoding": 0 }:

[Foo%20Bar](/bhsd-harry/wikiparser-node/wiki/Foo%20Bar)

Options

file

This option can be configured to specify the severity of URL encoding in file links.

Examples of incorrect code for { "url-encoding": [ 0, { "file": 2 } ] }:

![link=Foo%20Bar](https://raw.githubusercontent.com/wiki/bhsd-harry/wikiparser-nodeFile:Example.jpg)

Examples of correct code for { "url-encoding": [ 2, { "file": 0 } ] }:

![link=Foo%20Bar](https://raw.githubusercontent.com/wiki/bhsd-harry/wikiparser-nodeFile:Example.jpg)