diff --git a/src/containers/AboutPage/AboutPageContent.tsx b/src/containers/AboutPage/AboutPageContent.tsx index 216f4c29da..d3096daaea 100644 --- a/src/containers/AboutPage/AboutPageContent.tsx +++ b/src/containers/AboutPage/AboutPageContent.tsx @@ -110,16 +110,6 @@ const AboutPageContent = ({ article: _article, frontpage }: Props) => { ]; }, [_article, i18n.language])!; - useEffect(() => { - if (window.MathJax && typeof window.MathJax.typeset === "function") { - try { - window.MathJax.typeset(); - } catch (err) { - // do nothing - } - } - }); - const licenseProps = licenseAttributes(article.copyright?.license?.license, i18n.language, undefined); return ( diff --git a/src/containers/ArticlePage/ArticlePage.tsx b/src/containers/ArticlePage/ArticlePage.tsx index bb0d15bf5f..7c02b0a626 100644 --- a/src/containers/ArticlePage/ArticlePage.tsx +++ b/src/containers/ArticlePage/ArticlePage.tsx @@ -132,16 +132,6 @@ const ArticlePage = ({ resource, errors, skipToContentId, loading }: Props) => { useNavigateToHash(article?.transformedContent.content); - useEffect(() => { - if (window.MathJax && typeof window.MathJax.typeset === "function") { - try { - window.MathJax.typeset(); - } catch (err) { - // do nothing - } - } - }); - if (resource && isLearningPathResource(resource)) { const url = getLearningPathUrlFromResource(resource); return ( diff --git a/src/containers/LearningpathPage/LearningpathPage.tsx b/src/containers/LearningpathPage/LearningpathPage.tsx index 12cfb3af14..44a03f6a32 100644 --- a/src/containers/LearningpathPage/LearningpathPage.tsx +++ b/src/containers/LearningpathPage/LearningpathPage.tsx @@ -41,15 +41,6 @@ const LearningpathPage = ({ data, skipToContentId, stepId, loading }: Props) => const { user, authContextLoaded } = useContext(AuthContext); const { t } = useTranslation(); const { trackPageView } = useTracker(); - useEffect(() => { - if (window.MathJax && typeof window.MathJax.typeset === "function") { - try { - window.MathJax.typeset(); - } catch (err) { - // do nothing - } - } - }); useEffect(() => { if (loading || !data || !authContextLoaded) return; diff --git a/src/containers/PlainArticlePage/PlainArticleContainer.tsx b/src/containers/PlainArticlePage/PlainArticleContainer.tsx index 9cded16d23..b4116492ae 100644 --- a/src/containers/PlainArticlePage/PlainArticleContainer.tsx +++ b/src/containers/PlainArticlePage/PlainArticleContainer.tsx @@ -35,15 +35,6 @@ const PlainArticleContainer = ({ article: propArticle, skipToContentId }: Props) const { user, authContextLoaded } = useContext(AuthContext); const { t, i18n } = useTranslation(); const { trackPageView } = useTracker(); - useEffect(() => { - if (window.MathJax && typeof window.MathJax.typeset === "function") { - try { - window.MathJax.typeset(); - } catch (err) { - // do nothing - } - } - }); useEffect(() => { if (!propArticle || !authContextLoaded) return; diff --git a/src/containers/PlainLearningpathPage/PlainLearningpathContainer.tsx b/src/containers/PlainLearningpathPage/PlainLearningpathContainer.tsx index 5dda07534d..8a739223da 100644 --- a/src/containers/PlainLearningpathPage/PlainLearningpathContainer.tsx +++ b/src/containers/PlainLearningpathPage/PlainLearningpathContainer.tsx @@ -34,16 +34,6 @@ const PlainLearningpathContainer = ({ learningpath, skipToContentId, stepId }: P const { trackPageView } = useTracker(); const steps = learningpath.learningsteps; - useEffect(() => { - if (window.MathJax && typeof window.MathJax.typeset === "function") { - try { - window.MathJax.typeset(); - } catch (err) { - // do nothing - } - } - }); - useEffect(() => { if (learningpath && authContextLoaded) { const dimensions = getAllDimensions({ user });