Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
node.nodeValue = newText;
});
});
}
// find the math in code blocks
const latex = wrapper.querySelectorAll('code.latex.language-latex');
const asciimath = wrapper.querySelectorAll(
'code.asciimath.language-asciimath',
);
renderBlockElements({ elements: latex, config });
renderBlockElements({ elements: asciimath, config, isAsciimath: true });
renderMathInElement(wrapper, config);
// return html without the wrapper
return wrapper.innerHTML;
},
},