feat: support math rendering with KaTeX

This commit is contained in:
Henry-Jessie
2025-11-02 16:31:00 +08:00
committed by Henry-Jessie
parent 72e97c4fbc
commit 06d17eb22e
4 changed files with 326 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import './index.css'
import 'katex/dist/katex.min.css'
// Clean up stale service workers on app load to prevent caching issues after builds
if ('serviceWorker' in navigator) {
@@ -18,4 +19,4 @@ ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
)