-
-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text colour from article might conflict with theme #741
Comments
I guess we can make an option for this. |
I'm assuming this is inline CSS, but I can't be sure - could it be markup that's made grey by Wallabag's own style rules? If it's inline CSS, we don't really do anything special to remove it unless you request |
This is indeed inline CSS for citations blocks, like here. The baggy theme from wallabag uses special rules for blockquote elements, but nothing to do with text color. |
Ah ok. In PDF Newspaper and Push to Kindle, we use HTML Purifier to only accept a certain set of HTML elements with only a few attributes allowed - the style attribute is not one of them, so inline CSS doesn't create a problem. In your case, you might want to look at HTMLPurifier_AttrTransform to see if you can change/remove certain style rules that appear in the style attribute without affecting the rest. Haven't attempted this myself, so not sure how easy it is. |
This seems to be fixed in 2.0.0-alpha.0: http://v2.wallabag.org/view/13 |
E.g. If you save an article that has citation in grey text wallabags saves it as grey text, which can conflict with dark themes.
I don't know what the best fix would be. But stripping the text colour information from the text would give a good result.
The text was updated successfully, but these errors were encountered: