mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-07-18 05:45:46 +00:00
Docs: Update benchmark for anthropic/claude-sonnet-5 EFF:high
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
async function parseMarkdown(markdown) {
|
||||
const [{ marked }, DOMPurify] = await Promise.all([
|
||||
import('https://esm.sh/marked@12'),
|
||||
import('https://esm.sh/dompurify@3').then(m => m.default),
|
||||
]);
|
||||
|
||||
marked.setOptions({ gfm: true, breaks: true });
|
||||
|
||||
const rawHtml = marked.parse(markdown ?? '');
|
||||
return DOMPurify.sanitize(rawHtml);
|
||||
}
|
||||
export default parseMarkdown;
|
||||
// Generation time: 4.740s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user