I made the Clean Embeds CSS snippet but it still has some deficiencies in PDF styling (margins/padding around embeds when exporting to PDF).
So I naively jumped into the Dev Console, hit Ctrl+Shift+P, selected Show Rendering and selected Emulate CSS media type: print.
Voilà: White screen. Of course now it tried to show the whole Obsidian in “print” mode, not just my preview window.
Q1: How do you debug your PDF styling, say, for a theme or CSS snippet? Can’t be that we have to try-and-error and measure stuff in the PDF, right?
Q2: Is there a way to copy the rendered preview as HTML, so I could save it to a file and go from there?
Q3: Is there something like a
print.css for the Obsidian built-in themes so I can at least get an idea where to override what?
P.S.: Please don’t answer “Just enclose everything in
@media print in your CSS”, since for some reason that doesn’t work, not even using
!important (which I abhor). I actually tried using
@media screen, print but to no avail.