mirror of
https://github.com/lynchmarkHQ/lynchmark.com.git
synced 2026-10-19 10:14:51 +00:00
Docs: Update Gemini benchmark results
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
const parseMarkdown = async t => {
|
||||
const { parse } = await import('https://esm.sh/marked')
|
||||
return parse(t ?? '')
|
||||
const parseMarkdown = async s => {
|
||||
const [{ marked: m }, { default: p }] = await Promise.all([
|
||||
import('https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js'),
|
||||
import('https://cdn.jsdelivr.net/npm/dompurify/dist/purify.es.js')
|
||||
])
|
||||
return p.sanitize(m.parse(s))
|
||||
}
|
||||
export default parseMarkdown;
|
||||
Reference in New Issue
Block a user