mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-05-14 05:52:54 +00:00
Add client-side latex rendering (#61)
* feat: client-side katex.js * docs: add katex attribution
This commit is contained in:
parent
3424b363d4
commit
7cf3839f41
67 changed files with 152 additions and 4 deletions
12
public/question.js
Normal file
12
public/question.js
Normal 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();
|
Loading…
Add table
Add a link
Reference in a new issue