Mintlify's CloudFront CDN for KaTeX CSS returns a 403 error for many necessary fonts used in mathematical expressions #1665
novusnota
started this conversation in
Bugs & Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Mintlify's CloudFront CDN for KaTeX CSS returns a 403 error for many necessary fonts used in mathematical expressions.
In particular, to be able to display
\mathbb{P}and many other formulas properly, theKaTeX_AMS-Regularis needed.However, none of its variations seems to be present in
d4tuoctqmanu0.cloudfront.net. Or at least not directly accessible:Those fonts are requested by the
katex.min.cssfile in the root of the CDN. Please, add them or allow fetching them!Current workaround
Simplest one is to append another
<link>tag that imports a differentkatex.min.cssby the end of<head>. Thatkatex.min.csswould now point to the proper CDN from the relevant KaTeX docs, and load necessary fonts from there.In Mintlify, this is achieved by using Custom JavaScript:
That said, I'd prefer not to use such an approach, since this custom CSS is not tied to the JavaScript KaTeX parts of Mintlify's math integrations. Thus, everything could break, the amount of stuff to be downloaded rises, and this is yet another dependency — hence, another liability.
Additional notes
There might be an issue with imports of
katex.min.csssince the corresponding<link>tag is present twice on each documentation page:Beta Was this translation helpful? Give feedback.
All reactions