Skip to content

ghMentions does not work with username having dots #574

Description

@davidsandoz

Description

In GitLab, dots are allowed in usernames (unlike in GitHub). When using ghMentions with ghMentionsLink, if the given username contains a dot, the link is made only with what is before the dot.

Input

@john.doe

With the following showdown options:

{
    ghMentions: true,
    ghMentionsLink: 'https://gitlab.example.com/{u}',
}

Expected output

<a href="https://gitlab.example.com/john.doe>@john.doe</a>

Actual output

<a href="https://gitlab.example.com/john>@john</a>.doe

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions