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,11 @@
|
||||
const parseMarkdown = async md => {
|
||||
const { marked } = await import('https://cdn.jsdelivr.net/npm/marked@12.0.1/lib/marked.esm.js')
|
||||
return marked.parse(md)
|
||||
const parseMarkdown = async s => {
|
||||
if (typeof s !== 'string') return ''
|
||||
try {
|
||||
const { parse } = await import('https://cdn.jsdelivr.net/npm/marked/+esm')
|
||||
return parse(s)
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
return ''
|
||||
}
|
||||
}
|
||||
export default parseMarkdown;
|
||||
Reference in New Issue
Block a user