Perhaps we add a Printer icon to the PreviewWindow lower icon bar to enable it printing? As printing from the PreviewWindow only makes sense when it is visible. Then the css swap in/out code code we added last time could be used to help control how things print.
Just a thought.
ps:
Also we need to be worried about mathjax and mathml and make sure to copy the contents of the current page source code from PreviewWindow to get mathml enabled properly.
To get that but skip the darkmode css that is injected might not be straightforward.
Last edited by KevinH; 02-10-2023 at 12:51 PM.
|