showdown.js是一个javascript环境下markdown语法解释工具.支持nodejs和各大主流浏览器.
示例代码:
var converter = new showdown.Converter();var md = '[**Showdown**](https://www.showdownjs.com) is *great*\n' + 'because:\n\n' + ' - it\'s easy to use\n' + ' - it\'s extensible\n' + ' - works in the server and in the browser';var html = converter.makeHtml(md);
评论