feat: client-side katex.js

This commit is contained in:
httpjamesm 2023-09-24 00:23:09 -04:00
parent 20dd62726c
commit a1c237c96b
No known key found for this signature in database
66 changed files with 150 additions and 2 deletions

12
public/question.js Normal file
View file

@ -0,0 +1,12 @@
const doRender = () => {
renderMathInElement(document.body, {
delimiters: [
{ left: '$$', right: '$$', display: true },
{ left: '\\[', right: '\\]', display: true },
{ left: '$', right: '$', display: false },
{ left: '\\(', right: '\\)', display: false },
],
})
}
doRender();