Duncan Lock b998ad60e0 Updated to cope with multiple images and figures, and to deal with indivdual images. 11 gadi atpakaļ
..
__init__.py b998ad60e0 Updated to cope with multiple images and figures, and to deal with indivdual images. 11 gadi atpakaļ
better_figures_and_images.py b998ad60e0 Updated to cope with multiple images and figures, and to deal with indivdual images. 11 gadi atpakaļ
readme.rst b998ad60e0 Updated to cope with multiple images and figures, and to deal with indivdual images. 11 gadi atpakaļ

readme.rst

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

This plug-in:

- Adds a `style="width: ???px;"` attribute to any `` tags in the content, by checking
the dimensions of the image file and adding the appropriate style="width: ???px;" to the `` tag.
- Also finds any `div class="figures"` tags in the content, that contain images and adds the same style to them too.


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.