8000 Markdown Formatting tokens in URLs should not be parsed · Issue #17958 · go-gitea/gitea · GitHub
[go: up one dir, main page]

8000
Skip to content
Markdown Formatting tokens in URLs should not be parsed #17958
@dingensundso

Description

@dingensundso

Gitea Version

1.15.7

Operating System

Debian

Browser Version

Firefox 93.0

Can you reproduce the bug on the Gitea demo site?

Yes

Description

In issues and comments underscores in URLs are interpreted as formatting characters.

For example https://try.gitea.io/dingensundso/python_test/src/commit/64961edfda9192fb42158c4854cefae473d8f84b/__init__.py#L2 will look like the attached screenshot when posted and the link is not what it was supposed to be (https://try.gitea.io/dingensundso/python_test/issues/1)

To mitigate this you have to escape the underscores.

What makes this worse is that this the "Reference in new issue" link (when viewing a file) generates an issue with the link like above.

In my opinion the parser should not try to format things in URLs.

Screenshots

Current behavior:
Screenshot_2021-12-11_12-27-15

Expected behavior:
Screenshot_2021-12-11_12-30-18

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0