text icon indicating copy to clipboard operation
text copied to clipboard

Punctuation-preceded backticks don't visually format when typed

Open strugee opened this issue 3 months ago • 1 comments

Describe the bug

Backticks aren't turned into code formatting when preceded by a punctuation character. For example typing this:

(`foobar`

does not result in code formatting being applied.

To Reproduce Steps to reproduce the behavior:

  1. Open a Text document and start editing it.
  2. Type ( and then backtick.
  3. Type anything (say foobar) then backtick.
  4. Notice how nothing happens, and you still see literal backticks in your document. (The same is true if you click "Done" and then go back to editing.)

Expected behavior foobar is formatted as code.

Screenshots

image

Server details:

  • Nextcloud version: 28.0.2
  • PHP Version: 8.1.27
  • Database: 5.7.44-48-log (I know it's unsupported but it's out of my control this seems unrelated)

Client details:

  • OS: Linux
  • Browser: Firefox
  • Browser version: 122
  • Device: desktop

Nextcloud log (data/nextcloud.log)

N/A

Browser log

Nothing at all in the JS console.

strugee avatar Mar 14 '24 03:03 strugee