Files
lynchmark.com/tests/5_markdown_parser/outputs_gemini/gemini-3-pro-preview TEMP_0.5.js
T

11 lines
267 B
JavaScript

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;