Skip to content

Commit

Permalink
Use mathjax svg renderer (#2707)
Browse files Browse the repository at this point in the history
Summary:
We identified an issue where mathjax would fail to render certain math symbols. This happens on MacOS versions Ventura and later (13+) because of a change in the OS-supplied STIX fonts. We fix this here by changing the renderer from HTML+CSS (which tries to use local STIX fonts) to SVG.

This is a follow up to pytorch/botorch#2481 which solved the same problem on the botorch website. See that PR for more details

| **Before**    | <img width="920" alt="Screenshot 2024-08-23 at 4 40 19 PM" src="https://github.com/user-attachments/assets/6bf1e0ca-e457-4629-956d-29105b50d6e3"> |
| -------- | ------- |
| **After**  | <img width="932" alt="Screenshot 2024-08-23 at 4 40 40 PM" src="https://github.com/user-attachments/assets/c7d804c6-fd3d-4083-beb5-123a9f535862"> |

Pull Request resolved: #2707

Reviewed By: Balandat

Differential Revision: D61735692

Pulled By: CristianLara

fbshipit-source-id: 91a9585ebd8978f0bb1f0f25b2eab07fdda9a4b2
  • Loading branch information
CristianLara authored and facebook-github-bot committed Aug 23, 2024
1 parent 407d1ab commit 403ec68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const siteConfig = {
`${baseUrl}js/plotUtils.js`,
'https://buttons.github.io/buttons.js',
`${baseUrl}js/mathjax.js`,
'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML',
'https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS_SVG',
],

// On page navigation for the current documentation page.
Expand Down

0 comments on commit 403ec68

Please sign in to comment.