pandoc doesn't text-wrap code blocks when converting to pdf
问题 I'm using pandoc with xelatex engine to convert markdown to pdf. I'm running pandoc like this: pandoc -s 'backbone-fundamentals'.md -o 'backbone-fundamentals'.pdf \ --title-prefix 'Developing Backbone.js Applications' \ --normalize \ --smart \ --toc \ --latex-engine=`which xelatex` If a code line is longer than the pdf document width it just gets cutoff. Is there anyway to have pandoc text wrap long code lines? 回答1: Not having the text wrapped is (part of) the point of code blocks. As far as