-
Notifications
You must be signed in to change notification settings - Fork 89
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
Inconsistencies and problems in when images are rendered from RST #112
Comments
CSS code inspired on Spinx. Dependes on fixing pypa/readme_renderer#112.
@mila I think this is fixed now that #113 and #114 are merged and released (https://pypi.org/project/readme_renderer/22.0/), can you close if that's accurate, or update this with anything that's currently outstanding? |
It would be great to deploy Warehouse using the new version. The goal is to close pypi/warehouse#4023. Unless I missed something, there should be no more work in readme_renderer. So, I'm closing this issue. |
I'm reopening this, because the fix in #114 isn't going to work on PyPI due to our restrictive CSP policy which disallows inline styles. We're not going to relaxing that, so in order for this to actually work, readme_renderer will need to emit css classes in all cases. |
Good catch. I'm afraid that it's impossible to define css classes for each possible width or height. I see two options:
There should be no problem with image alignment, it's already implemented using css classes. |
I guess I'd say that (2) is probably the best option here, unless we think that absolute dimension part is no go, then maybe (1). Although maybe we could do something like (2), but also add a couple common sizes for relative dimensions that people can use too? I'm not sure how needed these things are TBH, so I don't know if either of these things are worth the effort or not. I guess we should probably also ping @nlhkabu for input on whether mandating absolute sizing is going to break the UX or not. |
(1) has to be done in any case and #121 should make the job. It would be nice to have (2), but it can be done later. pypi/warehouse#4023 is about image alignment and sizing is not necessary for that.
|
Ah good point, I'll go ahead and reclose that issue since alignment is still working correctly. |
Thanks, closing. |
Investigating pypi/warehouse#4023, I found multiple related problems:
.../django-multi-gtfs.svg?branch=master
is not detected as SVG.The text was updated successfully, but these errors were encountered: