github / github/markup

image not respecting alignement with png in .rst

未关闭
#1,760 6 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
keep
主要语言
Ruby
星标
6k
派生
3.4k
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。