Just bumping this, because it’s not just about @media print {}
(and I should know this since I’m one of the only few people working on @media print{}
in Obsidian at the moment.
the HTML for PDF renders drops CSSclasses (the cssclass here being cornell
)
(in print)
versus in Obsidian
Unfortunately the lack of the css class applied to the .markdown-preview-view.markdown-rendered
section means that people cannot print or export to PDF except what is already originally rendered in the original theme, which kinda defeats the entire purpose of CSS classes. For use cases, stuff like LaTeX rendered document printing cannot be supported in-house by a theme that usually doesn’t look like LaTeX, or things like clean-embeds
cssclasses won’t print as such.