Skip to content

Incorrect markdown link highlighting when in round brackets #22717

Open
@Daeraxa

Description

@Daeraxa

Description

try.gitea link: https://try.gitea.io/Daeraxa/Markdown-links/src/branch/main/Test.md?display=source

The syntax highlighting of markdown links doesn't quite work when the link starts immediately after a round bracket.

This seems to be specifically the highlighting applied in the PR review window and source view but not in the editor.

See screenshot, note that you can see it should have the text as green and the link as red which is shown in the first and last markdown links but not any where it immediately comes after the bracket (i.e. ([...).

This appears to be an upstream issue in Chroma and an issue has been opened there - alecthomas/chroma#744

Gitea Version

try.gitea.io version

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

N/A

Operating System

N/A

How are you running Gitea?

N/A - try.gitea.io

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugtype/upstreamThis is an issue in one of Gitea's dependencies and should be reported there

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions