mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-16 19:01:02 +00:00
10 lines
285 B
JavaScript
10 lines
285 B
JavaScript
export const parseMarkdown = async m => {
|
|
const [{marked}] = await Promise.all([
|
|
import('https://cdn.jsdelivr.net/npm/marked@14.1.4/+esm')
|
|
]);
|
|
const html = marked.parse(m);
|
|
return html;
|
|
};
|
|
export default parseMarkdown;
|
|
// Generation time: 0.670s
|
|
// Result: PASS
|