fix: initialize MathJax correctly (#57321)

Co-authored-by: Naomi <accounts+github@nhcarrigan.com>
This commit is contained in:
Sem Bauke
2024-12-23 12:53:38 +01:00
committed by GitHub
parent d9f9eeba57
commit 68550ccbb4
10 changed files with 42 additions and 44 deletions
+2 -2
View File
@@ -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);
}