【发布时间】:2014-09-10 06:00:27
【问题描述】:
例如,当我转换以下页面时:https://developers.google.com/edu/python/strings
s = 'hi'
print s[1] ## i
print len(s) ## 2
print s + ' there' ## hi there
变成
.. code:: prettyprint
s = 'hi' print s[1] ## i print len(s) ## 2 print s + ' there' ## hi there
这是因为pre块上有一个标签:<pre class=prettyprint>
如何使 pandoc 打印出具有适当空间的代码块? --no-highlight 似乎没有做任何事情。
【问题讨论】: