Help:Lint errors/tidy-font-bug

The table below demonstrates the problem:

So, with Tidy, the link is now coloured green instead of blue / red (depending on whether the page exists or not) whereas Remex and Parsoid will not do this.

This linter category tracks pages with this behaviour so that editors can make appropriate fixes to the wikitext depending on desired rendering.

Solution
To correctly colour a link green, the styling should be brought between the brackets:

Preferentially, the styling should use  and the   attribute because  is obsolete in HTML 5:

Caveat
However, Tidy does not do this consistently for all cases where a font tag wraps a link or an image tag.

https://gerrit.wikimedia.org/r/#/c/386016/6/tests/mocha/linter.js shows a bunch of wikitext snippets and what Tidy does.

Tools
The following tools can help fix tidy font bug:


 * WPCleaner: see instructions on how to use WPCleaner for fixing errors detected by Linter. Tidy font bug may be reported by WPCleaner as part of CheckWiki error #535.