2016-04-09 4 views
0

code-blockを、RSTとpandocを使用してリスト要素の後に表示しようとしています。私のマークアップは次のようになります。制御文字を表示するPandoc先頭

4. For the given inputs, my program produces the following output: 
    .. code-block:: 

    298561404 
    (0,0) 
    john doe 4 

しかし、レンダリングされた出力(pandoc -o hw.pdf hw.rst)は、その中に.. code-block::を持っている:rendered document。私はコードディレクティブのいくつかの異なる種類を試しましたが、それらはすべて同じ結果を与えます。私はここで間違って何をしていますか?あなたがcode-blockディレクティブの前に空白行を挿入した場合、それが動作

答えて

2

4. For the given inputs, my program produces the following output: 

    .. code-block:: 

    298561404 
    (0,0) 
    john doe 4 

別のオプションは、code-blockをスキップし、単に前項の最後に二つのコロンを使用することです(これは、次のテキストブロックを示し、 literal block):

4. For the given inputs, my program produces the following output:: 

    298561404 
    (0,0) 
    john doe 4 
関連する問題