JS Markdown в HTML

// Node:
let showdown  = require('showdown'),
    converter = new showdown.Converter(),
    text      = '# hello, markdown!',
    html      = converter.makeHtml(text);

// Browser
// <script src="https://unpkg.com/showdown/dist/showdown.min.js"></script>

let converter = new showdown.Converter(),
    text      = '# hello, markdown!',
    html      = converter.makeHtml(text);
KostasX