Skip to content

CommonMark hyperlink labels, containing code CommonMark, that point to non-existent items in existent projects, render as their converted-into HTML5.

Steps to reproduce

To reproduce the bug, enter:

[`work_items/81083#note_2522862600`](https://gitlab.com/gitlab-org/gitlab-foss/-/work_items/81083#note_2522862600)

To demonstrate that this doesn't occur to other hyperlinks, enter:

[`gitlab-org/gitlab-foss/-/work_items`](https://gitlab.com/gitlab-org/gitlab-foss/-/work_items)

What is the current bug behavior?

It renders as:

[<code data-sourcepos="1:15-1:48">work_items/81083#note_2522862600</code>](https://gitlab.com/gitlab-org/gitlab-foss/-/work_items/81083#note_2522862600)

What is the expected correct behavior?

It should render as CommonMark defines that its source representation would; as the alternative example does.

Organisation

This bug happens on GitLab.com:

@gitlab-bot label reproduced on GitLab.com

@gitlab-bot label typebug

Edited by 🤖 GitLab Bot 🤖