mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-06-27 12:40:57 +02:00
10 lines
279 B
JavaScript
10 lines
279 B
JavaScript
import "katex/dist/katex.css"
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
import("katex/dist/contrib/auto-render")
|
|
.then(({ default: renderMathInElement }) => {
|
|
renderMathInElement(document.body)
|
|
})
|
|
.catch((error) => console.error(error))
|
|
})
|