mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Remove MathJax v2 (#16961)
GitOrigin-RevId: 32a43361cfc883aa1a5ed85f6be5432b6e838b9d
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { useRef, useEffect, type FC } from 'react'
|
||||
// @ts-ignore
|
||||
import Linkify from 'react-linkify'
|
||||
import useIsMounted from '../../../shared/hooks/use-is-mounted'
|
||||
import { configureMathJax } from '../../mathjax/configure'
|
||||
import { loadMathJax } from '../../mathjax/load-mathjax'
|
||||
import { debugConsole } from '@/utils/debugging'
|
||||
|
||||
@@ -18,18 +16,6 @@ const MessageContent: FC<{ content: string }> = ({ content }) => {
|
||||
a.setAttribute('rel', 'noreferrer noopener')
|
||||
}
|
||||
|
||||
// MathJax v2 typesetting
|
||||
if (window.MathJax?.Hub) {
|
||||
const { Hub } = window.MathJax
|
||||
|
||||
const timeout = setTimeout(() => {
|
||||
configureMathJax()
|
||||
Hub.Queue(['Typeset', Hub, root.current])
|
||||
}, 0)
|
||||
|
||||
return () => clearTimeout(timeout)
|
||||
}
|
||||
|
||||
// MathJax v3 typesetting
|
||||
loadMathJax()
|
||||
.then(MathJax => {
|
||||
|
||||
Reference in New Issue
Block a user