sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

printing markdown files is really annoying (and probably other files) #5998

Open williamstein opened 2 years ago

williamstein commented 2 years ago

There are several major issues with markdown printing that are probably pretty easy to fix.

Fixing these is also relevant to implementing proper printing for whiteboards (not done yet).

  1. Try to print from editable mode -- it doesn't exist. That's annoying and confusing, and it's just because I forgot to add the button.
  2. In locked view you can print, but it includes bootstrap css in the header, and that's horrible due to https://stackoverflow.com/questions/32950554/css-color-property-not-working-correctly-on-media-print, e.g., it always puts all urls visibly after they are used, and it changes ALL color to black and white. That's super annoying and old school. It's also impossible to tell if something is a link or not. If you're just printing to PDF this is super dumb.

A quick dramatic improvement is just to swap out the bootstrap css for antd css. We have our own copy served from a local "cdn", so that should be easy. Also, just add the print button.

williamstein commented 2 years ago

Also, not having antd breaks printing tables, since they are antd tables.