mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-04-07 04:42:13 +00:00
Docs: Update benchmark for minimax/minimax-m2.7
This commit is contained in:
15
tests/5_markdown_parser/outputs/minimax_minimax-m2.7.js
Normal file
15
tests/5_markdown_parser/outputs/minimax_minimax-m2.7.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export async function parseMarkdown(m) {
|
||||
try {
|
||||
const [{ marked }, { default: DP }] = await Promise.all([
|
||||
import("https://esm.sh/marked"),
|
||||
import("https://esm.sh/dompurify")
|
||||
]);
|
||||
marked.setOptions({ gfm: true });
|
||||
return DP.sanitize(marked.parse(m));
|
||||
} catch (_) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
export default parseMarkdown;
|
||||
// Generation time: 64.285s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user