4

Is there a way to link form inside a code fragment in the Github markdown?

For example: `I want THIS to be a link` where THIS looks like THIS.

Community
  • 1
  • 1
Gabriel Petrovay
  • 20,476
  • 22
  • 97
  • 168
  • When linking in run-of-the-mill markdown you would write: "I want [\*THIS\*](www.example.com) to be a link" Is that what you are referring to? If not, you should be more explicit in your question. – D. Bunnell Nov 13 '13 at 11:45
  • Nope. I want: `to write a LINK HERE inside this code fragment` – Gabriel Petrovay Nov 13 '13 at 12:26

1 Answers1

5

I guess it's not possible via markdown, but if the markdown interpreter accepts HTML code you can do: <code>I want <a href="...">THIS</a> to be a link</code>.

Here is how it looks (rendered): chromium-browser https://stackoverflow.com/

And, yes! Github allows HTML code in the markdown files. Here is a screen shot from a gist with the code above:

Community
  • 1
  • 1
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474