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
Create a new code block (or preformatted block)
Add text inside of two backticks
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
WordPress version: 5.6
Gutenberg version: Not Installed
Are all plugins except Gutenberg deactivated? Yes
Are you using a default theme (e.g. Twenty Twenty-One)? Yes
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 blockStep-by-step reproduction instructions
<code>
element, nested inside of the blockExpected behaviour
Backticks should retain their original formatting and not transform.
Actual behaviour
Backticks are converted into a
<code>
elementScreenshots or screen recording (optional)
Code snippet (optional)
WordPress information
Device information