Turndown HTML 转 Markdown 的 JavaScript 库 项目简介
Turndown 是一个 HTML 转 Markdown 的 JavaScript 库。引用:<script src="https://unpkg.com/turndown/dist/turndown.js"></script>也可用于 Node:// For Node.js
var TurndownService = require('turndown')
var turndownService = new TurndownService()
var markdown = turndownService.turndown('<h1>Hello world!</h1>')
var TurndownService = require('turndown')
var turndownService = new TurndownService()
var markdown = turndownService.turndown('<h1>Hello world!</h1>')