Adds data-issue-type to issue references in rendered GFM
What does this MR do and why?
Issue references in the generated HTML from markdown
will now contain a new attribute data-issue-type
which contains the type of issue referenced.
Only applies to issues, not other issuables.
Related to #358998 (closed)
How to set up and validate locally
Create a new issue and reference another issue in the description (e.g. #1
)
The new issue will have a referenced issue in the description. If you inspect the HTML for the reference it shoud have a new data attribute as in
<a href="http://localhost/namespace1/project1/-/issues/1" data-original="#1" data-link="false" data-link-reference="false" data-project="118" data-issue="78" data-issue-type="issue" data-reference-type="issue" data-container="body" data-placement="top" title="My title 1" class="gfm gfm-issue has-tooltip">#1</a>
data-issue-type="issue"
is the new one
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mario Celi