Docs: Update benchmark results

This commit is contained in:
github-actions[bot]
2025-11-18 17:37:06 +00:00
parent 39d057f079
commit afcfd09537
84 changed files with 1086 additions and 1088 deletions

View File

@@ -1,9 +1,13 @@
const parseMarkdown = async m => {
async function parseMarkdown(md) {
const u = 'https://cdn.jsdelivr.net/npm/marked@9/lib/marked.esm.js';
const o = {gfm:true,breaks:true,headerIds:false,mangle:false};
try {
const {marked} = await import('https://esm.sh/marked');
return marked.parse(m);
} catch (e) {
return `<pre>${e.message}</pre>`;
const {marked} = await import(u);
marked.setOptions(o);
return marked.parse(md);
} catch(e) {
return `<p>${e.message}</p>`;
}
};
}
export default parseMarkdown;