fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.91k stars 284 forks source link

Disable fake CM on firefox to fix highlighting in PDF export #2900

Closed fonsp closed 2 months ago

fonsp commented 2 months ago

2885 caused an issue on Firefox where printing to PDF directly after opening the notebook does not highlight code:

This is because Firefox does not wait long enough for all DOM manipulation to be done, unlike Chrome and Safari.

This PR disables #2885 on Firefox, cant think of a better way

image
github-actions[bot] commented 2 months ago

Try this Pull Request!

Open Julia and type:

  julia> import Pkg
  julia> Pkg.activate(temp=true)
  julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="fake-cm-firefox-disable")
  julia> using Pluto