Skip to content

Instantly share code, notes, and snippets.

@abearxiong
Created November 2, 2022 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abearxiong/c50ecf8cce2bfced83e73821fee50ae5 to your computer and use it in GitHub Desktop.
Save abearxiong/c50ecf8cce2bfced83e73821fee50ae5 to your computer and use it in GitHub Desktop.
system-import-markded
const main = async () => {
const libUrl = 'https://cdn.jsdelivr.net/npm/marked/marked.min.js';
const lib = await System.import(libUrl);
if(lib) {
const marked = lib.default;
const markdown = `# markddown`
app.innerHTML = marked.parse(markdown);
}
};
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment