mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01: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)
|
const root = useRef(null)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (!(window.MathJax && window.MathJax.Hub)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const MJHub = window.MathJax.Hub
|
const MJHub = window.MathJax.Hub
|
||||||
const inlineMathConfig = MJHub.config && MJHub.config.tex2jax.inlineMath
|
const inlineMathConfig = MJHub.config && MJHub.config.tex2jax.inlineMath
|
||||||
const alreadyConfigured = inlineMathConfig.some(
|
const alreadyConfigured = inlineMathConfig.some(
|
||||||
|
|||||||
Reference in New Issue
Block a user