haskell / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
BSD 2-Clause "Simplified" License
361 stars 242 forks source link

MathJax 3 support #1603

Closed voidbert closed 1 month ago

voidbert commented 1 year ago

Addressed issue #1602.

A new option, --mathjax-version=VERSION was added. This allows the user to specify what major MathJax version they want to use. This information can be used to choose the correct file (from the Cloudflare defaults), and to initialize the library correctly (2 and 3 have different configuration methods), even if the user provides their own files.

This is my first PR in this project, so please tell me if my code may break anything and how it can be improved. The HTML tests don't pass, but I tested that that was already the case in the commit before mine.

Kleidukos commented 1 month ago

Hi, thank you for this PR, but Haddock now lives full-time in the GHC repository! Read more at https://discourse.haskell.org/t/haddock-now-lives-in-the-ghc-repository/9576.

Let me know if you feel it is still needed, and I'll migrate it. :)