MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / configure

Function configure

client/src/utils/math-jax.ts:20–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18];
19
20const configure = () => {
21 if (!global.MathJax) return;
22 const MathJax = global.MathJax;
23 MathJax.Hub.Config({
24 tex2jax: {
25 inlineMath: [
26 ['$', '$'],
27 ['\\(', '\\)']
28 ],
29 processEscapes: true,
30 processClass: 'mathjax-support'
31 }
32 });
33 document.querySelectorAll('.mathjax-support').forEach(el => {
34 MathJax.Hub.Queue(['Typeset', MathJax.Hub, el]);
35 });
36};
37
38export const initializeMathJax = (mathJaxChallenge = true) => {
39 const mathJaxMountPoint = document.querySelector('#mathjax');

Callers 2

initializeMathJaxFunction · 0.70
archive.test.tsxFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected