Linking to a Header in a Snippet Does Not Render Markdown
Summary
When adding markdown to a snippet, the markdown renders as expected. However if you link to a specific header, the markdown will not render.
Steps to reproduce
- Create a snippet with some markdown headers
- Visit the snippet directly and observe markdown renders - (https://gitlab.com/-/snippets/2415460)
- Link to a specific header - (https://gitlab.com/-/snippets/2415460#test-heading-2)
- Visit URL with linked header in a new tab
- Observe that the markdown no longer renders
Example Project
- Renders Properly: https://gitlab.com/-/snippets/2415460
- Does Not Render: https://gitlab.com/-/snippets/2415460#test-heading-2
What is the current bug behavior?
Linking to a specific header does not render markdown
What is the expected correct behavior?
Linking to a specific header should render markdown
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Edited by Ryan Kelly