2016-04-09 13 views
0

RST ve pandoc kullanarak bir liste öğesinden sonra code-block görüntülemeye çalışıyorum.Pandoc rst kontrol karakterlerini görüntüleme

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

    298561404 
    (0,0) 
    john doe 4 

Ama render çıkışı (pandoc -o hw.pdf hw.rst) içinde .. code-block:: sahiptir: My biçimlendirme şöyle rendered document. Birkaç farklı kod yönergesi denedim, ancak hepsi aynı sonucu veriyorlar. Burada neyi yanlış yapıyorum?

cevap

2
Eğer code-block yönergesi önce boş satır eklemek eğer çalışır

:

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

    .. code-block:: 

    298561404 
    (0,0) 
    john doe 4 
Diğer bir seçenek code-block atlayıp önceki paragrafta sonunda iki nokta üst üste kullanmaktır

(bu belirten aşağıdaki metin bloğu bir literal block):

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

    298561404 
    (0,0) 
    john doe 4 
İlgili konular