Incorrectly extracted issue references in headings
Summary
We incorrectly extract issue references from headings (#
) when it contains number that happens to be an issue ID. We ignore space between #
and the number and also dots in the number.
Found in the context of https://gitlab.com/gitlab-org/gitlab-ce/issues/30874#note_27416643.
Steps to reproduce
Preview following Markdown:
# 30.8.64
What is the current bug behavior?
Issue reference for #30864 (closed) is extracted and the output HTML is:
<h1 dir="auto">
<a href="/gitlab-org/gitlab-ce/issues/30864" data-original="" data-link="true" data-project="13083" data-issue="5030923" data-reference-type="issue" title="9.1 regressions" class="gfm gfm-issue has-tooltip"></a>30.8.64</h1>
What is the expected correct behavior?
Issue reference is not extracted.
Output of checks
This bug happens on GitLab.com