-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
rst: use CSS for image alignment. #1222
base: master
Are you sure you want to change the base?
Conversation
3020bf6
to
7c27fbd
Compare
content = File.read('test2.txt') |
@flying-sheep do you know if any of the other options are not working? You may want to update the branch so the CI can re-run (it now uses GitHub actions). |
Well, you use the https://github.com/github/markup/blob/master/test/markup_test.rb#L44-L47 This means that these defaults are used: https://github.com/gjtorikian/html-pipeline/blob/0e3d84eb13845e0d2521ef0dc13c9c51b88e5087/lib/html/pipeline/sanitization_filter.rb#L133 Changing the config in the tests here won’t change what GitHub does. And the defaults are bad: They allow the obsolete We have to make GitHub parametrize its use of |
Regarding you question:
|
Would that be too hard to do? It seems like it must be done in order for the tests to pass. That does point out that it might still end up being stripped by GitHub in their prod pipeline, but as stated in html-pipeline GitHub uses a similar pattern, but not that gem.
So either way they need to be aware they should not be stripping the inline styles. |
From this on the README:
this fix may never work unless they do allow some inline styles. |
Pretty much only this one. But we need someone from GitHub providing transparency here. |
fixes #163