Skip to content

Punctuation-preceded backticks don't visually format when typed #5483

Description

@strugee

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions