This demonstrates Turnish – an HTML to Markdown converter in JavaScript.
var turnish = new Turnish() console.log( turnish.render('<h1>Hello world</h1>') )
It aims to be CommonMark compliant, and includes options to style the output. These options include: