This demonstrates turndown – an HTML to Markdown converter in JavaScript with additional support for GFM via the turndown-plugin-gfm plugin.
var turndownService = new TurndownService() TurndownPluginGfmService.gfm(turndownService) console.log( turndownService.turndown('<strike>Hello world</strike>') )
It aims to be CommonMark compliant, and includes additional options to style the output. These options include: