Allow rendering HTML snippets (and code from other programming languages) in the Gutenberg Editor

Created on 13 April 2025, 25 days ago

Problem/Motivation

I am using the AI Block editor to create code blocks written in Rust, C or creating HTML templates, and they are not being rendered properly:

Steps to reproduce

- Open the Gutenberg Editor and select the "AI Block" Plugin.
- Ask for a basic HTML template or for a snippet of code in C/Rust/Go/Whatever
- You'll see that the end result is a messed up block with non-escaped characters, lacks the code HTML element to render the code

Proposed resolution

- Add a new React component to render these HTML/code snippets generated by the AI Provider properly

Remaining tasks

User interface changes

- Perhaps adding a checkbox to indicate that the following content has code or HTML structures to save extra conditions

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada danrod Ottawa

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024