j0k3r / graby

Graby helps you extract article content from web pages
MIT License
365 stars 74 forks source link

Disable inline style stripping using site config #222

Open lizyn opened 4 years ago

lizyn commented 4 years ago

Come here for a wallabag site config issue. The thing is, I'd like to stop stripping inline styles on specific sites, thus preserving special elements like highlight paragraphs defined by inline styles.

This behavior of stripping inline styles is controlled by pre_filters and post_filters under readability, that's what I got from previous issues.

So I wonder if this default behavior can be altered by site config files. The docs by FiveFilters don't cover this, for sure, since this update was made by you.

After searching this code base (sadly I can't read much code), I came to the conclusion that this can only be done by changing code directly when wallabag is deployed. Am I right?

j0k3r commented 4 years ago

For now, we don't have such option to play with filters for readability. But this is something we already talked about and would like to implement.