18

I have tried the following syntax to make a Markdown list item on a GitHub page of mine a hyperlink:

  1. [Caption]: https://example.com
  2. Another list item

Contrary to intuitive expectations it renders into the following HTML code

<ol>
  <li></li>
  <li>Another list item</li>
</ol>

How can this possibly be fixed? Is there a correct syntax for this? My intention was to create a clickable list of sources of the information used to write the article and put it in the bottom part of it.

Ivan
  • 63,011
  • 101
  • 250
  • 382

2 Answers2

30

It should be:

  1. [Caption](https://example.com)
  2. Another list item
Alex Harvey
  • 14,494
  • 5
  • 61
  • 97
4

From GitHub's "Mastering Markdown":

Links

http://github.com - automatic!
[GitHub](http://github.com)

Mastering Markdown]

https://guides.github.com/features/mastering-markdown/#Links

C. Augusto Proiete
  • 24,684
  • 2
  • 63
  • 91