Adjustments to the katex integration, part 2.

This commit is contained in:
Fredrik Jonsson 2023-03-17 16:44:50 +01:00
commit eee22b08f5

21
assets/js/math.js Normal file
View file

@ -0,0 +1,21 @@
/**
* @file
* A JavaScript file for Katex auto renderer.
*/
(function () {
'use strict';
document.addEventListener('DOMContentLoaded', function () {
// eslint-disable-next-line no-undef
renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}
],
throwOnError: false
});
});
})();