Get started with remark CDN

MIT licensed

The Remark.js library is a minimal and flexible Markdown parser for JS.

Tags:
  • slides
  • slideshow
  • markdown
  • templates

Stable version

Copied!

How to start using remark CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with remark CDN - cdnhub.io</title>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/remark.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/rehype-stringify.min.js"></script>
</head>
<body>
  <script>
    const remark = require('remark')();
    const rehypeStringify = require('rehype-stringify');

    const markdown = `
      # Hello, World!
      This is an example of using Remark with a CDN.
    `;

    const process = async () => {
      const result = await remark()
        .use(rehypeStringify)
        .process(markdown);

      console.log(result.content);
    };

    process();
  </script>
</body>
</html>

All versions