Opened 5 years ago

Closed 5 years ago

#4044 closed enhancement (fixed)

Theme Handbook: Code example display incorrectly

Reported by: mukesh27's profile mukesh27 Owned by:
Milestone: Priority: normal
Component: Handbooks Keywords: has-screenshots


In Theme Handbook article "Custom Post Type Template Files" block "Search in Custom Post Types" system shows & instead or & and > instead of > that needs to fix.

Attachments (1)

error.png (83.9 KB) - added by mukesh27 5 years ago.

Download all attachments as: .zip

Change History (5)

5 years ago

#1 @dd32
5 years ago

There seems to be a few things causing problems here.

  1. Gutenberg Classic component will convert & into & recursively upon focusing and defocusing (Second focus will convert it to &, etc)
  2. Gutenberg Classic component doesn't seem to like <code> having line breaks
  3. The code blocks now seem to need to be defined as <code>[php]...[/php]</code> rather than the <pre>[php]... as currently used.

I suspect the syntax highlighting plugin has had a change here which is what's causing the issues..

I've fixed this page manually by using the 'Edit in HTML mode' of the Gutenberg Editor (NOT edit the classic block in HTML mode) but it seems to affect a lot of the pages.

edit: 1 above appears not to be Gutenberg, but rather an interaction on the handbooks, so probably a plugin.

Last edited 5 years ago by dd32 (previous) (diff)

#2 @dd32
5 years ago

#4396 was marked as a duplicate.

#4 @coffee2code
5 years ago

  • Keywords needs-patch removed
  • Resolution set to fixed
  • Status changed from new to closed

This issue was fixed generally in [8843] via #4457. However, a number of the pages listed in the Google doc above had formatting issues resulting from partial conversion to blocks. I verified that those listed pages were fixed and fixed them if they weren't.

Feel free to reopen or open a new bug if the problem crops up again or elsewhere.

Note: See TracTickets for help on using tickets.