【问题标题】:Markdown links within a bullet list are not resolving [closed]项目符号列表中的 Markdown 链接无法解析 [关闭]
【发布时间】:2017-01-24 23:01:55
【问题描述】:

我正在尝试使用 Markdown 和 Jekyll 为我的博客创建一个带项目符号的链接列表,但出现了一些奇怪的行为。

Finally, many of the data sets that were used in the studies mentioned above are open source and freely available.  
-   [Visceral](http://www.visceral.eu/)
-   [ImageNet](http://image-net.org/)
-   [Kaggle Data Science Bowl](https://www.kaggle.com/c/data-science-bowl-2017)
-   [Grand Challenge](https://grand-challenge.org/All_Challenges/)
-   [Lung Image Database Consortium](https://imaging.cancer.gov/programsandresources/informationsystems/lidc)
-   [Multimodal Brain Tumor Segmentation Challenge](http://braintumorsegmentation.org/)

 Thanks for reading, and please feel free to [reach out](http://healthcare.ai/contact) with questions!

我的网站上的输出如下所示:

项目符号列表中的链接可以正常工作,但它们没有下划线。段落中的链接带有下划线。我希望所有链接都带有下划线。

【问题讨论】:

  • 听起来像是 CSS 问题。你的 CSS 在哪里?
  • 正如@Michael 所提到的,它似乎只是关于你的CSS,而不是jekyll。因此,请检查您的 css 文件并更新 li css 样式。如果您需要更多帮助。请使用更多信息更新问题:)
  • 感谢大家的帮助。它肯定在我们的 CSS 中。但是,由于即将进行网站重建,我们暂时忽略此问题。

标签: html css markdown jekyll


【解决方案1】:

只需将这段(非常丑陋的)代码添加到您的正文/布局中:

<style>
li a {text-decoration: underline!important;}
</style>

或者,更好的是,只将 CSS 添加到您的样式表中。

如果您已经走到了这一步,您可能还希望通过在“li a”选择器前面添加一个祖先/父类来使其更具体。

【讨论】:

    猜你喜欢
    • 2015-03-11
    • 1970-01-01
    • 1970-01-01
    • 2023-03-15
    • 2012-12-09
    • 2014-11-07
    • 2016-02-13
    • 1970-01-01
    • 2017-03-23
    相关资源
    最近更新 更多