import md2html from 'md-to-html'; const promise = md2html('foo.md', 'bar.html', { breaks: true, maxdepth: 2, title: 'page-title'});