Duncan Lock 223e182905 Added initial stab at figures and image widths plugin. 11 gadi atpakaļ
..
__init__.py 223e182905 Added initial stab at figures and image widths plugin. 11 gadi atpakaļ
better_figures.py 223e182905 Added initial stab at figures and image widths plugin. 11 gadi atpakaļ
readme.rst 223e182905 Added initial stab at figures and image widths plugin. 11 gadi atpakaļ

readme.rst

Summary
===========

This plug-in finds any `div class="figures"` tags in the output, finds the image contained inside each one,
then checks the dimensions of the image file and adds the appropriate style="width: ???px;" to both the img tag
and it's containing div.figure tag.


Assuming that the image is 250px wide, it turns output like this:


map to buried treasure


This is the caption of the figure.



Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.



into output like this:


map to buried treasure


This is the caption of the figure.



Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.



TODO: Currently only does the first figure, not all of them