WordPress / Documentation-Issue-Tracker

Issue Tracker for the WordPress Documentation team.
https://make.wordpress.org/docs/
Other
80 stars 41 forks source link

Content formatting is erratic when displaying code on some pages #1561

Open markhowellsmead opened 5 months ago

markhowellsmead commented 5 months ago

Issue Description

The inclusion of code samples in the developer documentation is leading to display issues.

URL of the Page with the Issue

e.g. https://developer.wordpress.org/reference/functions/wptexturize/

Section of Page with the issue

"More information", also “As an example“.

github-actions[bot] commented 5 months ago

Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

markhowellsmead commented 5 months ago

Additionally, the “before” and “after” examples are both converted on that page, so there is no visible difference.

flexseth commented 5 months ago

TIL: The quotes are called Smart Quotes - they break formatting in CLI arguments!

Additionally, the “before” and “after” examples are both converted on that page, so there is no visible difference.

May have to do with the phpdoc-parser