Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect markdown link highlighting when in round brackets #22717

Open
Daeraxa opened this issue Feb 1, 2023 · 0 comments
Open

Incorrect markdown link highlighting when in round brackets #22717

Daeraxa opened this issue Feb 1, 2023 · 0 comments
Labels
type/bug type/upstream This is an issue in one of Gitea's dependencies and should be reported there

Comments

@Daeraxa
Copy link

Daeraxa commented Feb 1, 2023

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

@yardenshoham yardenshoham added the type/upstream This is an issue in one of Gitea's dependencies and should be reported there label Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug type/upstream This is an issue in one of Gitea's dependencies and should be reported there
Projects
None yet
Development

No branches or pull requests

2 participants