Skip to content

Improves the scroll to hash when viewing Markdown

Jacques Erasmus requested to merge improve-scroll-to-hash into master

What does this MR do and why?

Ensures the scroll to anchor is scrolling to the correct position when viewing a Markdown file and a hash is present in the URL

Screenshots or screen recordings

before after
Screenshot_2022-05-16_at_13.57.34 Screenshot_2022-05-16_at_13.58.27

How to set up and validate locally

  1. Open a Markdown file via the repository files browser
  2. Click on an anchor
  3. Refresh the page
  4. The page should scroll to the correct position

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jacques Erasmus

Merge request reports