postlight / parser

📜 Extract meaningful content from the chaos of a web page
https://reader.postlight.com
Apache License 2.0
5.37k stars 443 forks source link

Feature req: return a reference to the DOM node containing the main content #657

Open ba32107 opened 2 years ago

ba32107 commented 2 years ago

Context: I am working on an application that requires figuring out the "main content" of a given page. Mercury parser is perfect for this, however, I get the result back as text, but what I'd really need is a reference in the DOM, so I can perform further manipulations in my JS code. Thanks!