Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js markdown to 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);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #js #markdown #html
ADD COMMENT
Topic
Name
4+2 =