【问题标题】:How to use HTML in Markdown?如何在 Markdown 中使用 HTML?
【发布时间】:2015-10-25 06:51:46
【问题描述】:

使用 Jeykll,我有一个 markdown 文件,里面有一个 div 和一个列表。

问题在于,通过将 div 引入降价,列表失去了降价“样式”:

some text here <a href="#anchor-text-here" data-toggle="collapse" href="#anchor-text-here" aria-expanded="false" aria-controls="anchor-text-here">some text here</a>.

<div id="anchor-text-here" class="collapse">
1. step 1
2. step 2
3. step 3  and so on... 
</div>

生成的 HTML 不包含 OL 元素。

【问题讨论】:

    标签: html markdown jekyll


    【解决方案1】:

    看起来解决方案是在 DIV 元素中添加一个属性:markdown="1",因为如果放在 DIV 元素中,显然 Markdown 会“禁用”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-01-30
      • 2020-02-25
      • 2013-03-20
      • 2015-06-04
      • 2011-10-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多