Missing `Special GitLab reference` for a link to a line of code

Summary

There is no Special GitLab reference for a link to a line of code (e.g. this). When I paste a URL to a line of code into a comment, it does not render in any special way – the hyperlink text is the URL. Such a hyperlink is hard to read, takes a lot of space and this behavior is unexpected as for example MR, issue or commit URL renders as Special GitLab reference.

Steps to reproduce

  1. Input URL to a line of code to a comment (e.g. https://gitlab.com/gitlab-org/ux-research/-/blob/master/Survey%20about%20requirements%20for%20monitoring/Features%20list.md#L8).
  2. Click Preview.

What is the current bug behavior?

URL does not render as Special GitLab reference.

What is the expected correct behavior?

URL would render as Special GitLab reference.

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com

Possible fixes

🤷

Edited by Andrej Kiripolsky