When exporting to PDF, is there a way to remove the grey background of code blocks?

I’m asking because I want to be able to print my notes and the grey background would waste ink/toner. Thank you.

I think you could try with Adobe Acrobat Pro (or DC or what they call it these days) or some other program.

You should be able to style it using CSS (for the light mode), like in the following:


Where should I place the CSS code?

There are some guides floating around, but snippets go in the .obsidian/snippets folder, and then you enable them from the appearance settings.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.