mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Merge pull request #3603 from overleaf/msm-fix-react-mathjax-not-available
Ignored MathJax setup when not available GitOrigin-RevId: 716af272070b15d3fa1c346bea611f0e1abbac33
This commit is contained in:
@@ -6,6 +6,9 @@ function MessageContent({ content }) {
|
||||
const root = useRef(null)
|
||||
|
||||
useEffect(() => {
|
||||
if (!(window.MathJax && window.MathJax.Hub)) {
|
||||
return
|
||||
}
|
||||
const MJHub = window.MathJax.Hub
|
||||
const inlineMathConfig = MJHub.config && MJHub.config.tex2jax.inlineMath
|
||||
const alreadyConfigured = inlineMathConfig.some(
|
||||
|
||||
Reference in New Issue
Block a user