From 26afb4d88bdefc6b8db93cb77bc03615ab75fab6 Mon Sep 17 00:00:00 2001 From: almenon Date: Sun, 22 Dec 2019 16:58:32 -0800 Subject: [PATCH] add todo --- lib/convertFromUrl.js | 7 +++++++ 1 file changed, 7 insertions(+) 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({