Files
lynchmark.com/tests/5_markdown_parser/outputs_gemini/gemini-3-pro-preview TEMP_1.4.js
T

10 lines
268 B
JavaScript

export const parseMarkdown = async (str) => {
const ref = parseMarkdown;
ref.lib ||= (await import('https://esm.sh/marked@12.0.1')).marked;
return ref.lib.parse(str || '', {
async: false,
gfm: true,
breaks: true
});
};
export default parseMarkdown;