image not respecting alignement with png in .rst
- Linguagem predominante
- Ruby
- Estrelas
- 6k
- Forks
- 3.4k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
I decided to open a follow-up of [this thread](https://github.com/github/markup/issues/163) 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:
```rst
.. image:: toto.png
:align: center
```
It seems this is not taken into account when generating .png preview as shown in this [gist](https://gist.github.com/jmi2k/f422df7d4a67dde9c19e74d091c3582e) where the .svg is correctly aligned and the .png is not.
Guia de contribuição
Direção de pesquisa
Comece pelo exemplo em readme.rst e pelo gist vinculado, comparando a prévia SVG alinhada corretamente com a prévia PNG desalinhada. Rastreie como a diretiva `.. image::` e sua opção `:align: center` são renderizadas e, em seguida, verifique se as prévias PNG respeitam o mesmo alinhamento das prévias SVG.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- ruby
- Domínio
- documentation
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Pouca atividade
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 52/100