Markdown link reference does not allow code

Issue #12791 open
created an issue

Example markdown:

text [`code`][] text


Expected result:

text code text

Actual result:

text [code][] text

Issue reproduced at least in non-default branch. Didn't check at default branch yet.

Looks like the problem is in link reference [`code`]:

I reported the issue errornously there. As i understand from comment, the problem is inconsistent.