使用 Jeykll,我有一个 markdown 文件,里面有一个 div 和一个列表。
问题是通过将 div 引入 Markdown ,列表失去了 Markdown “样式”:
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 元素。
最佳答案
看起来解决方案是向 DIV 元素添加一个属性:markdown="1"
,因为如果将 markdown 放在 DIV 元素中,显然会被“禁用”。
关于html - 如何在 Markdown 中使用 HTML?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33327037/