Skip to content

Commit 923295c

Browse files
committed
Explicitly use the .mjs version of mhchem to avoid broken tests
I cannot see why this is necessary nor why the build works but the tests do not with the old import, but this does work so whatever.
1 parent d5b20a8 commit 923295c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/elements/LaTeX.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {BooleanNotation, FigureNumberingContext, FigureNumbersById, PotentialUse
66
import he from "he";
77
import {SITE, SITE_SUBJECT} from "../../services/siteConstants";
88
import katex, { KatexOptions } from "katex";
9-
import 'katex/contrib/mhchem';
9+
import 'katex/dist/contrib/mhchem.mjs';
1010
import renderA11yString from "../../services/katex-a11y";
1111
// @ts-ignore
1212
import { utils } from "remarkable";

0 commit comments

Comments
 (0)