Get started with showdown CDN

BSD-3-Clause licensed

The Showdown library is a lightweight markdown-to-HTML converter for JS.

Tags:
  • markdown
  • converter

Stable version

Copied!

How to start using showdown CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with showdown CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/showdown/2.1.0/showdown.min.js"></script>
</head>
<body>
  <script>
    const markdown = `
# Heading 1
## Heading 2
### Heading 3

**Bold text**
*Italic text*

`;

    const converter = new showdown.Converter();
    const html = converter.makeHtml(markdown);

    document.querySelector('#content').innerHTML = html;
  </script>
  <div id="content"></div>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions