Skip to content

Slash in codeblock opens menu #5381

@serhat-io

Description

@serhat-io

Short summary of the issue

If you use the code block and enter a slash after a space, the Markdown menu opens.

Example markdown file

normal text
~~~code
cd my/dir # this is fine
cd /somewhere # this will open menu and show "any link"
cd / # this will open menu and show full menu

Screenshot of the rendering in text

image
image

Details

  • Nextcloud version: 27.1.5 (storage share hetzner)

Expected behavior

The menu should not be displayed in the code block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    ☑️ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions