Complex markdown links are not rendering correctly
Created by: samrocketman
Right now Gitlab can't handle complex markdown links. It used to work in GitLab 6.4 and prior but stopped working in GitLab 6.5 and GitLab 6.6 (current stable versions).
Correct Rendering
1. Escaping back ticks
Markdown
[\`some code\` some text](http://example.com)
Result
<a href="http://example.com">`some code` some text</a>
2. Inline code in link
Markdown
[`some code` some text](http://example.com)
Result
<a href="http://example.com"><code>some code</code> some text</a>
Current GitLab behavior and bad rendering
1. Escaping back ticks (works)
Markdown
[\`some code\` some text](http://example.com)
Result
<a href="http://example.com">`some code` some text</a>
2. Inline code in link (broken)
Markdown
[`some code` some text](http://example.com)
Result
<a href="http://example.com"><code>some code</code> some text</a>
Screenshot comparison between GitHub and GitLab
Screenshot of correct render (GitHub)
Screenshot of render bug (GitLab)