luin / readability

📚 Turn any web page into a clean view
2.49k stars 313 forks source link

Fetch CSS ? #88

Closed LiTiang closed 7 years ago

LiTiang commented 7 years ago

I saw there're 2 image called before, after in u README.md

i think u dont provide such api to do that, right ?

so can u tell me how do u styling the web content after process by readability ?

( just like the result u made --- before.png )

at now, i just use below code to fetch all guys in <head>

article.document.querySelector('head').innerHTML
wong2 commented 7 years ago

apparently before.png is the original webpage, and after is the result of readability

haroldtreen commented 7 years ago

It would be interesting to have a library that preserved the styles, but I think that's out of scope for this project. The main focus here has been to analyze html and extract the main article. Figuring out how to transfer the styles to the extracted version is a separate concern.

Hope that answers the question. Going to close unless there's follow up.