The heading anchor links in Markdown view are hidden

Summary

In Markdown view: the anchor links next to the headings headings are not visible.

Steps to reproduce

(How one can reproduce the issue - this is very important)

Example Project

https://gitlab.com/gitlab-org/gitter/webapp/blob/develop/CHANGELOG.md

What is the current bug behavior?

When I hover over the heading in markdown view, the anchor link doesn't show (paperclip icon).

What is the expected correct behavior?

When I hover over the heading in markdown view, I expect an anchor link to become visible, so I can click it and the browser location bar updates with the #id-reference-to-the-heading part of URL.

Relevant logs and/or screenshots

Kapture_2020-02-17_at_13.44.22

Screenshot_2020-02-17_at_1.45.58_PM

Screenshot_2020-02-17_at_1.48.33_PM

Output of checks

This bug happens on GitLab.com

Possible fixes

@andr3 in internal Slack discussion (https://gitlab.slack.com/archives/CETG54GQ0/p1581967214441200?thread_ts=1581943625.436900&cid=CETG54GQ0) mentioned:

That was added recently: 54c45ecd (MR: !24181 (merged))

@markrian can you provide more insight into why this change was merged and if we can find a better solution, please? 🙂

I also haven’t seen an issue about this nor could find one with a quick search.

Screenshot_2020-02-17_at_11.16.31

Edited by Tomas Vik (OOO back on 2026-01-05)