formatters examples appear as html-encoded text
See original GitHub issueSee https://eslint.org/docs/latest/user-guide/formatters/
For example, the checkstyle
example used to look like this:
But now it looks like this:
By checking deploy previews on PRs, it seems that this change was introduced by https://github.com/eslint/eslint/pull/16606
Issue Analytics
- State:
- Created 9 months ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
HTML Text Formatting - W3Schools
HTML contains several elements for defining text with a special meaning. Example. This text is bold. This text is italic. This is subscript...
Read more >Declaring character encodings in HTML - W3C
Always declare the encoding of your document using a meta element with a charset attribute, or using the http-equiv and content attributes ( ......
Read more >HTML - Formatting - Tutorialspoint
Bold Text. Anything that appears within <b>...</b> element, is displayed in bold as shown below −. Example. Live ...
Read more >Encode and Decode Html - Word Counter
HTML Encode converts various characters that can be misinterpreted as HTML formatting to their HTML entity representation. Online HTML Encode: HTML Encode will ......
Read more >HTML Encode - Code Beautify
HTML Encode is easy to use tool to encode plain HTML to encoded html which helps to show html text in HTML in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When using
text
language, we were actually opting-out of 11ty syntax highlighting. But I don’t think that’s the standard way to handle it.Here’s how GitHub renders
text
language https://github.com/eslint/eslint/blob/main/docs/src/user-guide/formatters/index.md:And this is how
markdown-it
renders it:So I think it maybe more reasonable to decode the code block in the markdown source code instead of hacking on the new syntax highlighter with non-standard trick. Another benefit would be more readable code block.
More like an issue should be caught and fixed in https://github.com/eslint/eslint/pull/16606, though #16669 is a follow-up of https://github.com/eslint/eslint/pull/16606. I think it’s better to fix in a separate PR.