2015-07-20 52 views
0

我想弄清楚如何禁用rdiscount解析器向我添加額外的行codeblocks使用octopress作爲平臺,使用Jekyll作爲靜態站點生成器。我已經下面的圖像中附加的代碼和左窗格顯示已添加一個額外的行(行號5)使用Octopress修復rDiscount解析器中的額外行編號

源代碼:

{% codeblock lang:liquid %} 
{% raw %} 
{% blockquote [author [, source ]] [link] [source link title] %} {% endblockquote %} 
{% blockquote Shritam Bhowmick, His Portfolio %} 
To the mind that is still, the whole world surrenders. 
{% endblockquote %} 
{% endraw %} {% endcodeblock %} 

導致圖片:

enter image description here

有沒有我錯過的降價/流動語法?

回答

0

你有沒有嘗試刪除原始塊的結束行?像這樣:

{% codeblock lang:liquid %} 
{% raw %} 
{% blockquote [author [, source ]] [link] [source link title] %} {% endblockquote %} 
{% blockquote Shritam Bhowmick, His Portfolio %} 
To the mind that is still, the whole world surrenders. 
{% endblockquote %}{% endraw %}{% endcodeblock %} 
+0

是的,如果你看圖像,我已經刪除了該行。換行只是在blockquote之後開始新的標題。 –

相關問題