mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-05-18 04:32:12 +00:00
Docs: Update benchmark for openai/gpt-5.5 EFF:high
This commit is contained in:
25
tests/5_markdown_parser/outputs/openai_gpt-5.5 EFF_high.js
Normal file
25
tests/5_markdown_parser/outputs/openai_gpt-5.5 EFF_high.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const parseMarkdown = (() => {
|
||||
let libs;
|
||||
|
||||
return async markdown => {
|
||||
libs ||= Promise.all([
|
||||
import("https://cdn.jsdelivr.net/npm/marked@13/+esm"),
|
||||
import("https://cdn.jsdelivr.net/npm/dompurify@3/+esm")
|
||||
]);
|
||||
|
||||
const [{ marked }, { default: DOMPurify }] = await libs;
|
||||
|
||||
marked.use({
|
||||
gfm: true,
|
||||
breaks: false,
|
||||
async: false
|
||||
});
|
||||
|
||||
return DOMPurify.sanitize(
|
||||
marked.parse(String(markdown ?? ""))
|
||||
);
|
||||
};
|
||||
})();
|
||||
export default parseMarkdown;
|
||||
// Generation time: 13.490s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user