#3477 Don't expand #nnn to ticket links when already inside a link
Opened 2 years ago by mattdm. Modified 2 years ago

I wrote the following in a FESCo ticket:

See [FPC issue #714](https://pagure.io/packaging-committee/issue/714).

This resulted in this surprising-to-me HTML:

<p>See <a href="https://pagure.io/packaging-committee/issue/714">FPC issue </a><a href="/fesco/issue/714" title="[Closed] Feature request F17 D2 programming"></a><a href="/fesco/issue/714" title="[Closed] Feature request F17 D2 programming">#714</a>.</p>

If someone clicks on the #714, they get taken to a FESCo tracker issue of that number, not to my link. I can't think of a situation where this behavior would be desired. Recommendation: don't expand #nn when within a markdown link already.

I'm honestly not sure if this is doable, but worth looking into

Metadata Update from @pingou:
- Issue tagged with: bug

2 years ago

Anything is possible with software, right? :)

I'm happy for this to be triaged as low priority.

Might be worth looking into this one while we port pagure to markdown v3

Metadata Update from @pingou:
- Issue set to the milestone: Coming 3 months

2 years ago

Login to comment on this ticket.