showdown解析md文件
var converter = new showdown.Converter() // 初始化转换器 var htmlcontent = converter.makeHtml(data) // 将MarkDown转为html格式的内容 $('#test').html(htmlcontent) github地址: https://github.com/anneyangyue/Md_html 来源: https://blog.csdn.net/pugongyingyangyue/article/details/100039582