New image directive option "loading".
commit726330c10808398913595b3ee91962ce4281d18b
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Fri, 1 Dec 2023 13:25:40 +0000 (1 13:25 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Fri, 1 Dec 2023 13:25:40 +0000 (1 13:25 +0000)
tree2758c9f5d66664b909643da7c98c4beeef7dd43c
parente78bcd203bf5dc6261ffd81a3a27a72597757ff1
New image directive option "loading".

The new option sets the `<image>` element's "loading" attribute
to one of "embed", "link", "lazy" as an indication for the
preferred handling of the image by the writer.

Default and actual handling depend on the writer.
Currently only observed by the HTML5 writer, where it overrides the
"image_loading" configuration setting for the respective image.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9496 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
15 files changed:
docutils/HISTORY.txt
docutils/RELEASE-NOTES.txt
docutils/docs/ref/doctree.txt
docutils/docs/ref/docutils.dtd
docutils/docs/ref/rst/directives.txt
docutils/docs/user/config.txt
docutils/docutils/parsers/rst/directives/images.py
docutils/docutils/writers/_html_base.py
docutils/test/functional/expected/misc_rst_html5.html
docutils/test/functional/expected/standalone_rst_html5.html
docutils/test/functional/input/data/embed_images.txt
docutils/test/functional/input/data/html5-features.txt
docutils/test/test_parsers/test_rst/test_directives/test_figures.py
docutils/test/test_parsers/test_rst/test_directives/test_images.py
docutils/test/test_writers/test_html5_polyglot_parts.py