mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
13 lines
286 B
JavaScript
13 lines
286 B
JavaScript
async function parseMarkdown(md) {
|
|
const { marked } = await import('https://cdn.jsdelivr.net/npm/marked@12.0.0/+esm');
|
|
|
|
marked.setOptions({
|
|
gfm: true,
|
|
breaks: true
|
|
});
|
|
|
|
return marked.parse(md);
|
|
}
|
|
export default parseMarkdown;
|
|
// Generation time: 1.089s
|
|
// Result: PASS
|