Reusable blocks rendering as raw markup

Created on 22 January 2024, 12 months ago
Updated 23 January 2024, 12 months ago

Problem/Motivation

Not sure when this started happening, but I'm now seeing the raw code instead of rendered markup, for reusable blocks.

Steps to reproduce

1. Create a reusable block
2. Insert it on another page, in Gutenberg. All looks fine.
3. Save it, and view the page

Result: markup in the reusable block is showing, instead of the rendered block.

Here's an example of the Gutenberg code view:

<!-- wp:heading -->
<h2>Test reusable blocks</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Here's some normal text. Reusable block next:</p>
<!-- /wp:paragraph -->

<!-- wp:block {"ref":7} /-->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

And here's what's rendering:

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Postponed: needs info

Version

2.8

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States freelock Seattle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @freelock
  • Status changed to Postponed: needs info 12 months ago
  • πŸ‡΅πŸ‡ΉPortugal marcofernandes

    I tried to replicate with a fresh install but I couldn't and I even check our own projects with Gutenberg 2.8.
    My first thought is that's related to text filters. My suggestion is to review the "Gutenberg Blocks text format" at /admin/config/content/formats/manage/gutenberg and make sure that you have only "Gutenberg" checked on the Enabled filters section.
    Maybe there's another module that overrides the text format? πŸ€”

Production build 0.71.5 2024