Add client-side latex rendering (#61)

* feat: client-side katex.js

* docs: add katex attribution
This commit is contained in:
httpjamesm 2023-09-24 00:59:41 -04:00 committed by GitHub
parent 3424b363d4
commit 7cf3839f41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
67 changed files with 152 additions and 4 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();