Fix Markdown styling inside reference links
What does this MR do?
Makes Markdown styling work when the link refers to a Markdown referable.
Are there points in the code the reviewer needs to double check?
All comments from the previous MR have been resolved, so another fresh look would be good.
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/18096. Based off https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6609.