Skip to content

Commit 5fdd530

Browse files
committed
fix: fix mathjaxContainerPreprocessor
1 parent aaeb991 commit 5fdd530

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/.vitepress/theme/mathjax/mathjaxContainerPreprocessor.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ export const mathjaxContainerPreprocessor = (md: MarkdownIt) => {
1111
1212
${line}
1313
`;
14-
} else if (line.endsWith("}$$")) {
14+
} else if (line.trim().endsWith("}$$")) {
15+
console.log(`
16+
${line}
17+
18+
</div>
19+
</div>
20+
`)
1521
return `
1622
${line}
1723

0 commit comments

Comments
 (0)