parser icon indicating copy to clipboard operation
parser copied to clipboard

img src does not use image url, causing no image being displayed (This is also seen in mercury reader)

Open tong0x opened this issue 5 years ago • 1 comments

  • Mercury Parser Version: 2.2.0
  • Node Version (if a Node bug): 12.18.1
  • Browser Version (if a browser bug): Chrome 86.0.4240.75

Expected Behavior

When parsing or using mercury reader to read https://li.substack.com/p/unbundling-work-from-employment, the src field of the tags should contain the URL for the images to be displayed.

Current Behavior

The src field of the parsed tags are filled with a JSON object, specifically the data-attrs field of the tag from the site's HTML, rather than the src field.

Steps to Reproduce

  1. Go to https://li.substack.com/p/unbundling-work-from-employment
  2. Run mercury parser (return as HTML) or mercury reader
  3. Find src field of tags of the parsed HTML

tong0x avatar Oct 25 '20 21:10 tong0x

Any updates on this? I'm running into this exact issue right now :(

pbshgthm avatar Sep 15 '22 22:09 pbshgthm

Fixed by #696

johnholdun avatar Oct 07 '22 15:10 johnholdun