fonsp / Pluto.jl

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

fix: make sure mathjax will be bundled #2821

Open pankgeorg opened 7 months ago

pankgeorg commented 7 months ago

The not-the-src-yet attribute was, of course, not being bundled. we use the new URL() trick of parcel to make sure this will load, keeping the same flow.

github-actions[bot] commented 7 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="pg/offline-mathjax")
  julia> using Pluto
fonsp commented 7 months ago

The tex file appears in the bundle twice :o

https://github.com/fonsp/Pluto.jl/actions/runs/7972036214/job/21762929218?pr=2821#step:8:181

fonsp commented 7 months ago

It seems like MathJax v4 is almost released! And there are already beta releases. It might make sense to make the switch to v4 first before, otherwise we spend quite some effort debugging this, while the v4 will be bundled and included very differently.