Placing links inside markdown code blocks

Solution 1:

If its a short piece of code this should do the trick:

[`this is code`](https://this_is_url/)

Solution 2:

As far as I know, the current instance of GitHub Flavored Markdown doesn't support this.

The all block is rendered with <div class="highlight highlight-html"><pre>... </pre></div>, meaning your markdown link is not interpreted.

It would be best to place that link just before the code section (unless said section has dozens of similar links in your code).

Solution 3:

As suggested by VonC, it might not be possible with the current version of GitHub Flavored Markdown. That being said, I did find a way around it which suits my requirements. By using tags like <big>, <pre> and <b> I'm able to simulate syntax highlighting and get the effect I'm looking for. Too bad I can't add my own color though.

<big><pre>
**void** Click ([**Keycode**](#keycode) key) **const**
</pre></big>