Skip to content
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

image not respecting alignement with png in .rst #1760

Open
12rambau opened this issue Jan 9, 2024 · 1 comment
Open

image not respecting alignement with png in .rst #1760

12rambau opened this issue Jan 9, 2024 · 1 comment

Comments

@12rambau
Copy link

12rambau commented Jan 9, 2024

I decided to open a follow-up of this thread as the bug seems to be fixed but fails on some more specific image type.

I try to align the content of my readme.rst file to use as a long description in my pypi release. using the .. raw:: directive is then impossible.

A common way to do it (that works on both sphinx and pypi) is:

.. image:: toto.png
   :align: center

It seems this is not taken into account when generating .png preview as shown in this gist where the .svg is correctly aligned and the .png is not.

@jluebbe
Copy link

jluebbe commented Jan 19, 2024

It seems that alignment also doesn't work for URLs with parameters (?foo=1) after the .svg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants