📜  js markdown 到 html - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:21.833000             🧑  作者: Mango

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

// Browser
// 

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