Support more math tags.

This commit is contained in:
Fredrik Jonsson 2024-01-30 19:35:45 +01:00
commit f7245000d0

View file

@ -11,8 +11,10 @@
// eslint-disable-next-line no-undef
renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}
{left: '\\[', right: '\\]', display: true}, // block
{left: '$$', right: '$$', display: true}, // block
{left: '\\(', right: '\\)', display: false}, // inline
{left: '$', right: '$', display: false} // inline
],
throwOnError: false
});