10eda2 Adjust the markdown processor to have 1 regex for all cross-project links

Authored and Committed by Pierre-Yves Chibon 7 years ago
    Adjust the markdown processor to have 1 regex for all cross-project links
    
    Until now we had two regex/extensions for the cross-project links. One
    for forks one for regular project but this lead to the situation where
    if you have a pattern such as <user>/<project>#<id> the first part</id></project></user>
    (<user>) would be linked to the fork of the project <project> of that</project></user>
    user and the second part (<project>#<id>) would link to the ticket/PR</id></project>
    with this id in the original project.
    That was because the regex for cross-link project was matching the
    content of the link generated by the cross-link fork.
    By moving to one regex for all, we fix this situation.
    
        
file modified
+51 -54