You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that the content parsed by this library keeps relative urls for images, which prevents them to be rendered independently. (See for example the images in this url).
Remember to pass the page's URI as the url option in the JSDOM constructor (as shown in the example above), so that Readability can convert relative URLs for images, hyperlinks etc. to their absolute counterparts.
Alternatively, the JSDOM.fromURL function can be used, which already does that job. I confirmed with this basic script that the content comes with fixed images in that case:
Hi @facundoolano. No-one is currently actively working on this project, but if you're interested in making a PR that would close this issue I'm happy to review it.
I've noticed that the content parsed by this library keeps relative urls for images, which prevents them to be rendered independently. (See for example the images in this url).
As per the mozilla/readability repo:
Alternatively, the
JSDOM.fromURL
function can be used, which already does that job. I confirmed with this basic script that the content comes with fixed images in that case:The text was updated successfully, but these errors were encountered: