WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.52k stars 4.21k forks source link

Backticks in Code block produce nested <code> tags #28926

Open JasonHoffmann opened 3 years ago

JasonHoffmann commented 3 years ago

Description

If you try to add open and closing backticks inside of a "Code" block, then it produces a nested <code> block inside of it. The same is true of the Preformatted block

Step-by-step reproduction instructions

  1. Create a new code block (or preformatted block)
  2. Add text inside of two backticks
  3. The text will be transformed into a <code> element, nested inside of the block

Expected behaviour

Backticks should retain their original formatting and not transform.

Actual behaviour

Backticks are converted into a <code> element

Screenshots or screen recording (optional)

Code snippet (optional)

WordPress information

Device information

Quintis1212 commented 3 years ago

Hello ) I created PR to fix this bug - https://github.com/WordPress/gutenberg/pull/29175