generated from alphane/template
flashcards in the frontend!!!
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user