Markup: Image alignment not respected in reStructuredText

Created on 3 Nov 2012  路  12Comments  路  Source: github/markup

If I try to right-align an image in reStructuredText:

.. image:: https://travis-ci.org/jkleint/blamethrower.png
  :align: right

It comes out left-aligned: https://github.com/jkleint/blamethrower/blob/master/README.rst

Most helpful comment

This bug is not fixed, :align: right has no impact on the emitted HTML, which is wrong. please reopen

All 12 comments

python-creole, which seems to be used for rest2html, does not support it at the moment.
I've made a fix & pull-request to jedie/python-creole#11 for fixing it.

oh, my bad. I assumed it is used here.
I'm gonna look into it.

This bug is not fixed, :align: right has no impact on the emitted HTML, which is wrong. please reopen

I think this is still an issue. Any help?

Align is deprecated in HTML5: http://stackoverflow.com/questions/14551305/align-attribute-deprecated

@gjtorikian reStructuredText鈥檚 align is not HTML, is reStructuredText syntax. And it is _not_ deprecated (emphasis mine):

The alignment of the image, equivalent to the HTML tag's deprecated "align" attribute or the corresponding "vertical-align" and "text-align" CSS properties. The values "top", "middle", and "bottom" control an image's vertical alignment (relative to the text baseline); they are only useful for inline images (substitutions). The values "left", "center", and "right" control an image's horizontal alignment, allowing the image to float and have the text flow around it. The specific behavior depends upon the browser or rendering software used.

I don鈥檛 work at GitHub anymore, please contact their support.

@kivikakk Any chance you could reopen this issue?

1222 is an old attempt by me to fix this, and I assume it didn鈥檛 fix this because of jch/html-pipeline#302. Not entirely sure if that鈥檚 still the case.

We just need someone at GitHub to start caring at some point.

I also don't work at GitHub anymore, sorry; contacting support remains your best option.

@kivikakk Sorry, I saw your commits were the most recent, I did not realize they were from more than 1 year ago.

I wonder if GitHub is even maintaining this anymore.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zoffixznet picture zoffixznet  路  6Comments

crabmusket picture crabmusket  路  4Comments

doggy8088 picture doggy8088  路  4Comments

petrdvorak picture petrdvorak  路  6Comments

ghost picture ghost  路  7Comments