2015-10-25 42 views
2

使用Jeykll,我有一個帶div的列表文件,裏面有一個列表。如何在Markdown中使用HTML?

的問題是,通過引入在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元件。

回答

1

看起來像解決方案是將一個屬性:markdown="1"添加到DIV元素,因爲如果放在DIV元素中,顯然markdown會被「禁用」。

相關問題