stackedit icon indicating copy to clipboard operation
stackedit copied to clipboard

[Bug] Code blocks have scrollbars on printed pages

Open Cirx08 opened this issue 1 year ago • 1 comments

Expectation: Code blocks should add line breaks when printed so that all text is readable.

Actual: When a PDF or page is printed a scrollbar is displayed which cannot be scrolled on a printed page.

Image

Cirx08 avatar Nov 13 '25 09:11 Cirx08

Hello! Printing web content accurately is always tricky, especially with overflow in code blocks. For the Markups project (https://github.com/Nir-Bhay/markups), we developed print-optimized CSS features that specifically target these layout issues. Our styles ensure that code blocks expand correctly on the page rather than showing scrollbars in the PDF or printout. You can check out our print styles here: https://github.com/Nir-Bhay/markups.

Nir-Bhay avatar Mar 19 '26 20:03 Nir-Bhay