Implement feature request #40 Option to embed images as data URI.
commit8f49e9ff2dcf424966caeec3b0fe2d80d65466ed
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Fri, 27 Nov 2020 09:22:49 +0000 (27 09:22 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Fri, 27 Nov 2020 09:22:49 +0000 (27 09:22 +0000)
treefe3957bd235060bfc42641d3d1a0e7097382ad6e
parent380eac3df7e275ef7ba58f02445c3fac90a2bc59
Implement feature request #40 Option to embed images as data URI.

If the new "embed_image" configuration setting is true, the image
can be read from the local file system, and its MIME type can be
determined, it is base64 encoded and included as a data URI.

TODO:

* Add an "embed" option to the "image" directive to allow embedding
  of individual images?

* Use direct inlinging for SVG in HTML5?

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8581 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/HISTORY.txt
docutils/RELEASE-NOTES.txt
docutils/docs/user/config.txt
docutils/docutils/writers/_html_base.py
docutils/docutils/writers/html4css1/__init__.py
docutils/docutils/writers/html5_polyglot/__init__.py
docutils/test/functional/expected/embed_images_html5.html [new file with mode: 0644]
docutils/test/functional/input/embed_images.txt [new file with mode: 0644]
docutils/test/functional/tests/embed_images_html5.py [new file with mode: 0644]