mirror of
https://github.com/lynchmarkHQ/lynchmark.com.git
synced 2026-10-15 00:27:53 +00:00
10 lines
246 B
JavaScript
10 lines
246 B
JavaScript
let lib;
|
|
|
|
export async function parseMarkdown(text = '') {
|
|
lib ??= import('https://esm.sh/marked');
|
|
const { marked } = await lib;
|
|
return marked.parse(String(text));
|
|
}
|
|
export default parseMarkdown;
|
|
// Generation time: 15.759s
|
|
// Result: PASS
|