Skip to content

Notes: Backtick markdown code formatting strips/deletes pasted text content upon saving #80448

Closed

Description

@habiburdev

Description

Description

When testing the new Notes rich text capabilities in WordPress 7.1, attempting to format inline code using standard markdown backticks (e.g., like this) fails completely. Instead of rendering the text with a monospaced font, the text wrapped inside the backticks disappears entirely from the saved note card, leaving behind only the literal backticks and an ellipsis (...).

This has been verified in an isolated environment with all active plugins deactivated except for the core Gutenberg plugin.

Step-by-step reproduction instructions

  1. Open a post in the block editor.
  2. Highlight a section of text, open the toolbar option, and select "Add note".
  3. In the text field, type a word or sentence wrapped inside backticks, such as: like this
  4. Click Save.
  5. Observe the saved note card in the sidebar panel.

Expected behavior

The text wrapped inside the backticks should be converted into an inline <code> block, removing the raw backtick characters while preserving and formatting the inner text content.

Actual behavior

The inner text content vanishes entirely. The note card only displays the initial backticks alongside an automatically injected trailing ellipsis (e.g., showing only ` and ...).

Environment info

  • WordPress Version: 7.1-beta1 (via WordPress Playground)
  • Active Plugins: Gutenberg (All other plugins deactivated)
  • Browser: Chrome (Latest)
  • OS: macOS / Windows

Context / Related

Part of the WordPress 7.1 Notes testing cycle. Related to tracking issue #76316.

Step-by-step reproduction instructions

Step-by-step reproduction instructions

  1. Navigate to Posts in the WordPress admin menu and click Add New Post.
  2. Type some dummy text into the post editor content canvas.
  3. Highlight a portion of the text you just wrote.
  4. Click the three vertical dots (⋮) in the block toolbar options and select Add note.
  5. Copy a block of code or text to your clipboard.
  6. Inside the note text input box, type opening and closing backticks and paste your copied text between them (e.g., like this).
  7. Click the Save button.
  8. Observe the rendered note card inside the right-hand sidebar panel.

Screenshots, screen recording, code snippet

Image

Environment info

Environment info

  • WordPress Version: 7.1-beta1 (via WordPress Playground)
  • Gutenberg Plugin Version: 23.5.3
  • Active Plugins: Gutenberg (All other plugins deactivated)
  • Browser: Chrome (Latest)
  • OS: macOS / Windows

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    on Jul 18, 2026
  2. added
    Needs TestingNeeds further testing to be confirmed.
    [Feature] NotesPhase 3 of the Gutenberg roadmap around block commenting
    on Jul 18, 2026
  3. huzaifaalmesbah commented on Jul 18, 2026

    @huzaifaalmesbah
    Member
    Huzaifa-20260718231823.mp4
  4. mirmpro commented on Jul 20, 2026

    @mirmpro

    Test Report

    Description

    Tested the backtick formatting functionality inside the note comment panel to ensure backticks render and behave correctly.

    Environment

    • WordPress: 7.1-beta2
    • Subdirectory: No
    • PHP: 8.3.32
    • Server: PHP.wasm
    • Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
    • Browser: Chrome 150.0.0.0
    • OS: macOS
    • Theme: Twenty Twenty-Five 1.5
    • MU Plugins: None activated
    • Plugins:
      • Test Reports 1.3.0
      • WordPress Beta Tester 4.0.0

    Steps to Reproduce

    1. Open the post/comment editing view in the admin dashboard.
    2. Navigate to the internal note comment panel.
    3. Type text enclosed in backticks (e.g., `code`) inside the note field and save/submit.
    4. Verify the rendered output in the note panel.

    Expected Results

    1. ✅ Backticks should properly format inline code or text inside the note panel without display issues or syntax rendering errors.

    Actual Results

    1. ✅ Working as expected. Backticks inside the note comment panel render and function properly without issues.

    Additional Notes

    • Verified on WordPress 7.1-beta2 using PHP.wasm environment.
  5. imraju007 commented on Jul 20, 2026

    @imraju007

    Backtick markdown code format working fine
    Image

  6. nazmulasif commented on Jul 20, 2026

    @nazmulasif

    Backtick working as expected, tested on WordPress 7.1 beta 2.

    Image
  7. adamsilverstein commented on Jul 20, 2026

    @adamsilverstein
    Member

    @habiburdev - thanks for the report.

    Others haven't been able to reproduce, but I can also try after gathering some more details -

    Questions:

    • what user role did you leave the comments with, where you an Admin, Editor or Contributor?
    • can you still reproduce the issue with the Gutenberg plugin deactivated?
    • what version of the Gutenberg plugin are you using? (please make sure it is up to date)
  8. moved this from 📥 Todo to 🏗️ In Progress in WordPress 7.1 Editor Taskson Jul 20, 2026
  9. adamsilverstein commented on Aug 6, 2026

    @adamsilverstein
    Member

    Closing this as "works for me" which has been confirmed by others as well. If we missed something @habiburdev and you can offer steps to reproduce, please feel free to reopen this Issue!

  10. moved this from 🏗️ In Progress to ✅ Done in WordPress 7.1 Editor Taskson Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.[Feature] NotesPhase 3 of the Gutenberg roadmap around block commenting[Status] Needs More InfoFollow-up required in order to be actionable.[Type] BugAn existing feature does not function as intended

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions