Skip to content

Commit ee1d330

Browse files
author
Suraj Khamkar
committed
Fix issue causing no color inversion when rendering equations
1 parent c2cc214 commit ee1d330

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

assets/js/mathjax-setup.js

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
window.MathJax = {
22
tex: {
33
tags: "ams",
4+
inlineMath: [
5+
["$", "$"],
6+
["\\(", "\\)"],
7+
],
8+
},
9+
options: {
10+
renderActions: {
11+
addCss: [
12+
200,
13+
function (doc) {
14+
const style = document.createElement("style");
15+
style.innerHTML = `
16+
.mjx-container {
17+
color: inherit;
18+
}
19+
`;
20+
document.head.appendChild(style);
21+
},
22+
"",
23+
],
24+
},
425
},
526
};

0 commit comments

Comments
 (0)