diff --git a/lib/convertFromUrl.js b/lib/convertFromUrl.js index be76587..d101f1d 100644 --- a/lib/convertFromUrl.js +++ b/lib/convertFromUrl.js @@ -49,6 +49,13 @@ turndownService.addRule('noHiddenImages', { } }) +// todo: filter out profile header +// (right below title, the div with author profile pic and name and time to read article) +// unfortunately Medium uses randomly generated CSS properties which makes it hard to +// identify the header and strip it out. For example, I could strip the div with +// the class "eq" but the next time medium updated their CSS the div would have +// a different class name and the filter wouldn't work anymore + function convertFromUrl(url) { return new Promise(function(resolve, reject) { request({