mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
6135defdbe
commit
0d57ddfd23
1 changed files with 3 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue