0

I use Pandoc to export my Markdown to PDF. I sometimes include code blocks that are only 5 lines. They become unreadable if the PDF has a page break inside the code block.

How can I instruct either Pandoc or Markdown to not generate a PDF with a page break in the middle of a code block? I am happy to either make this globally impact all code blocks in the document or to have it impact just one.

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.