truncated codeblock #55
-
I am seeing that code blocks that extend beyond the bottom of a page in the PDF are truncated. Is there something that I can do to cause the code block to be continued on the next page of the PDF? The output is really beautiful, thanks so much for docusaurus-prince-pdf! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You can work around this by adding this CSS snippet directly to your docusaurus page /* This works around the issue of truncated code-blocks in https://github.com/signcl/docusaurus-prince-pdf/ */
@media print {
code[class*='codeBlockLines'] {
float: none;
display: block;
}
} |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! This code is very useful and solved the truncation problem I encountered |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! This code is very useful and solved the truncation problem I encountered
@kamilogorek Thank you very much! This code is very useful and solved the truncation problem I encountered |
Beta Was this translation helpful? Give feedback.
You can work around this by adding this CSS snippet directly to your docusaurus page