mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix: initialize MathJax correctly (#57321)
Co-authored-by: Naomi <accounts+github@nhcarrigan.com>
This commit is contained in:
@@ -44,7 +44,7 @@ export function getheadTagComponents(): JSX.Element[] {
|
||||
return headTags;
|
||||
}
|
||||
|
||||
export function getPostBodyComponents(pathname: string): JSX.Element[] {
|
||||
export function getPostBodyComponents(superblock: string): JSX.Element[] {
|
||||
const scripts = [];
|
||||
const mathJaxScriptElement = (
|
||||
<script
|
||||
@@ -56,7 +56,7 @@ export function getPostBodyComponents(pathname: string): JSX.Element[] {
|
||||
/>
|
||||
);
|
||||
|
||||
if (isMathJaxAllowed(pathname)) {
|
||||
if (isMathJaxAllowed(superblock)) {
|
||||
scripts.push(mathJaxScriptElement);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user