Markdown link reference does not allow code

Issue #12791 open
Vovan-VE
created an issue

Example markdown:

text [`code`][] text

[`code`]: file.md

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`]: file.md.

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