Move code for loading MathJax v3 into the editor core (#11433)

GitOrigin-RevId: 14adc6c35d511d6737d0f3b8c0adec00d8a0abb6
This commit is contained in:
Alf Eaton
2023-01-25 11:47:06 +00:00
committed by Copybot
parent adca4980db
commit 640f2cfc8f
2 changed files with 56 additions and 1 deletions
@@ -1,9 +1,9 @@
import { useRef, useEffect, type FC } from 'react'
// @ts-ignore
import Linkify from 'react-linkify'
import { loadMathJax } from '../../../../../modules/source-editor/frontend/js/utils/mathjax'
import useIsMounted from '../../../shared/hooks/use-is-mounted'
import { configureMathJax } from '../../mathjax/configure'
import { loadMathJax } from '../../mathjax/load-mathjax'
const MessageContent: FC<{ content: string }> = ({ content }) => {
const root = useRef<HTMLDivElement | null>(null)