2017-02-02 22 views
1

正常降價的代碼塊可以是列表的一部分:如何把鳥式的文學Haskell代碼塊成降價枚舉與pandoc

* Item1 
* Item 2 

    ```haskell 
    instance Alternative Facts where … 
    ``` 

    more explanation 

     instance Alternative Syntax where … 

    even more explanation 

但是,如果使用pandoc’s markdown+lhs mode,和我想要的代碼塊縮進列表中的呈現,這似乎並沒有工作:

* Item 3 

    Still indented 

    > Not picked up by GHC as literate haskell 

    More text 

> Picked up by GHC, but not indented by pandoc 

    Even more text of the item, but rendered as a code-block by pandoc. 

如何我可以標記它,以便GHC看到鳥式的代碼塊,但它縮進和適當事後也延續了項目?

(使用\begin{code}…\end{code}沒有在這種情況下的一個選項。)

+1

另請參閱https://github.com/jgm/pandoc/issues/3410 –

+0

downvoting沒有評論爲什麼? – mb21

回答