【问题标题】:How do I put a hyperlink inside a list in Markdown on GitHub Pages?如何在 GitHub Pages 上的 Markdown 列表中放置超链接?
【发布时间】:2018-09-21 03:20:23
【问题描述】:

我尝试使用以下语法将我的 GitHub 页面上的 Markdown 列表项设为超链接:

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

与直观的预期相反,它呈现为以下 HTML 代码

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

这怎么可能解决?这有正确的语法吗?我的目的是创建一个可点击的用于撰写文章的信息来源列表,并将其放在文章的底部。

【问题讨论】:

    标签: markdown jekyll github-pages kramdown


    【解决方案1】:

    应该是:

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

    【讨论】:

      【解决方案2】:

      来自 GitHub 的“Mastering Markdown”:

      链接

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

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-01-15
        • 2022-12-07
        • 2017-06-17
        • 2019-06-07
        • 2021-01-19
        • 2021-07-08
        • 2014-11-07
        • 1970-01-01
        相关资源
        最近更新 更多