#5346 closed defect (bug) (fixed)
Characters like &,<,? does not seem to be showing correctly in some Doc pages
Reported by: | kmarcink | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | |
Cc: |
Description
There seem to be something wrong with the WP coding standards page https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/
Characters like &,<,? does not seem to be showing correctly.
You can find them by searching for example for
- &
- <
Attachments (2)
Change History (9)
This ticket was mentioned in Slack in #meta by tellyworth. View the logs.
4 years ago
#2
@
4 years ago
- Component changed from General to Developer Hub
- Owner set to coffee2code
- Status changed from new to accepted
This ticket was mentioned in Slack in #meta by coffee2code. View the logs.
4 years ago
This ticket was mentioned in Slack in #docs by cbrandt. View the logs.
4 years ago
This ticket was mentioned in Slack in #core-coding-standards by kenshino. View the logs.
4 years ago
Note: See
TracTickets for help on using
tickets.
Thanks for the report!
This is an outstanding issue in general that for which the likely culprit is the SyntaxHighlighter Evolved plugin's handling of code shortcodes. Its block handling is superior and doesn't have this issue, but in this case the Code Standards Handbook is fully imported from GitHub, and thus originates as text in a Markdown format.
I believe the issue would be resolved if the source documents avoided the use of code shortcodes (e.g.
[php]
,[html]
,[css]
,[javascript]
, or[code]
) and instead used triple backticks (with optional language hinting) without pre-encoding, e.g.The Block Editor Handbook is also imported from GitHub and uses backticks (e.g. a source .md file and its resultant handbook page) which could be used for reference.
In the meantime, I'll push up a stopgap "fix" that addresses the display issue.
cc: @netweb