Quick actions don't process between an HTML comment and a later HTML tag
This is kind of the inverse case of #26332 (closed). If you have an comment that contains:
- An HTML comment.
- A quick action.
- An HTML tag.
Then the quick action won't be processed. For instance:
<!-- this is a comment -->
/label ~"type::feature"
<p>
</p>
Won't process the /label
quick action. Looking at HTML_BLOCK_REGEX
in https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/quick_actions/extractor.rb, there are a couple of issues:
- We treat a comment as opening a HTML tag.
- We don't check that the closing tag matches the opening tag.
In #26332 (closed) we talked about parsing markdown and then extracting quick actions; that would almost certainly help here.
Edited by Brett Walker