A simple parser for Medium (html) into Markdown.
npm install medium-parser
then
var parse = require('medium-parser');
var post = parse(htmlAsString);
/*
post == {
title: 'Post title',
headline: 'Headline from h2 tag',
author: 'Some author',
publishedTime: '2016-09-19T21:30:45.266Z',
markdown: '# Markdown\nAs string...',
}
*/
npm run test