Skip to content

Commit 3167719

Browse files
committed
Merge branch 'fix/registerTex' into develop
2 parents 3526ca0 + 3364733 commit 3167719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mjs/input/tex/register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function registerTeX(packageList = [], tex = true) {
1313
MathJax.config.tex.packages = packageList;
1414
if (packages) {
1515
if (Array.isArray(packages)) {
16-
packages = {'[+]': packages};
16+
packages = {'[+]': packages.filter((name) => !packageList.includes(name))};
1717
}
1818
insert(MathJax.config.tex, {packages});
1919
}

0 commit comments

Comments
 (0)