简体   繁体   中英

How do I put a hyperlink inside a list in Markdown on GitHub Pages?

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.

It should be:

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

From GitHub's " Mastering Markdown ":

Links

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

掌握降价]

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM