Code blocks are not displayed properly when they appear in multiple pages in the exported PDF

Testing version: Version 2.1.2 (12452)

What were you doing: Exporting a note as PDF

What feature did you use: export as PDF

What happened:
The background of the code block starts from the left edgs of the document when the code continues in the next page(s) as shown in the image below.

Note that this behaviour has been there for a very long time and it seems no one’s reported this in the forum which is surprising. Not sure if this is the intended behaviour but I don’t believe it is.

What did you expect to happen:
The background of the code block should be consistent and respect the margin of the document.

1 Like