Making WordPress.org

Opened 6 months ago

Closed 3 months ago

#5855 closed defect (fixed)

Correct formatting for code blocks imported from GitHub PRs, take 2

Reported by: SergeyBiryukov Owned by:
Milestone: Priority: normal
Component: Trac Keywords:


Background: #4903, #5308.

As seen in some comments on #WP22316, the formatting of code blocks still looks broken:



"name": "vendor/my-plugin",
"description: "....",
/* snip */
"wordpress": {






"plugin-dependencies": [


"slug": "gutenberg",
"name": "Gutenberg"


"slug": "woocommerce",
"name": "WooCommerce"




It looks like converting the GitHub syntax for code blocks to the syntax that Trac recognizes could use some adjustment.

Change History (4)

#1 @SergeyBiryukov
6 months ago

  • Component changed from General to Trac

#2 @dd32
4 months ago

In 11244:

Trac: GitHub: When importing GitHub code blocks, support/import the code format specifier.

This might not solve all of the differences, but should at least import it as a code block rather than as a broken block.

See #5855.

#3 @dd32
4 months ago

In 11245:

Trac: GitHub: When importing code blocks from GitHub, import the code blocks properly. Take two.

See #5855.

#4 @dd32
3 months ago

  • Resolution set to fixed
  • Status changed from new to closed

Marking as fixed, as I believe this is fixed.

Re-open if there's still examples of the code blocks importing badly.

Note: See TracTickets for help on using tickets.