This commit is contained in:
almenon 2019-12-22 16:58:32 -08:00
parent d256e33683
commit 26afb4d88b
1 changed files with 7 additions and 0 deletions

View File

@ -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({