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.