flashcards in the frontend!!!

This commit is contained in:
2026-06-26 01:25:25 -07:00
parent f83d4d579c
commit cb60ec8480
14 changed files with 1134 additions and 3 deletions
+1
View File
@@ -4,6 +4,7 @@ import markedKatex from "marked-katex-extension"
import "katex/dist/katex.min.css"
marked.use(markedKatex({ throwOnError: false }))
marked.use({ breaks: true })
export function renderMarkdown(source: string): string {
return DOMPurify.sanitize(marked.parse(source) as string)