zhaoterryy / mkdocs-pdf-export-plugin

An MkDocs plugin to export content pages as PDF files
MIT License
313 stars 44 forks source link

CSS in page content #88

Closed carrasquel closed 3 years ago

carrasquel commented 3 years ago

Greatings , I would like to apply a css rule to the content of a page only when is exported to PDF, but not in Web/HTML version, is there any way that I can do this?

carrasquel commented 3 years ago

I managed to solve this, I used a JS framework, in order to hide elements on JS rendering. pdf export only exports the html + css, it does not perform JS.