summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-10-13 15:42:30 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-10-13 15:42:30 +0000
commitf0bd2c6fbeaf4cc32d57afc8b5db15f509e0a90c (patch)
treeb71144eb79196cda94a9ff4ea01db69f3b2c0c2b /docs
parentd6a820acd40b2262657cdb99b2317fa75d2a0461 (diff)
downloaddocutils-f0bd2c6fbeaf4cc32d57afc8b5db15f509e0a90c.tar.gz
New option "image_loading" for HTML5.
With values "embed", "eager", "lazy", cf, feature-request #78. Obsoletes "embed_image". git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8853 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docs')
-rw-r--r--docs/user/config.txt39
1 files changed, 27 insertions, 12 deletions
diff --git a/docs/user/config.txt b/docs/user/config.txt
index 657bdcb78..eae7feccf 100644
--- a/docs/user/config.txt
+++ b/docs/user/config.txt
@@ -1143,7 +1143,7 @@ See also `stylesheet [latex writers]`_.
Overrides also stylesheet_path_. [#override]_
-Default: None. Options: ``--stylesheet``.
+Default: None. Option: ``--stylesheet``.
.. _stylesheet_dirs [html writers]:
@@ -1212,7 +1212,7 @@ The HTML5 stylesheets also define:
captionbelow
Place the table caption below the table
- (New in 0.17).
+ (New in Docutils 0.17).
In addition, the HTML writers support:
@@ -1315,34 +1315,49 @@ It shares all settings defined in the `[html writers]`_
New in Docutils 0.13.
-__ https://www.w3.org/TR/html53/sections.html#the-h1-h2-h3-h4-h5-and-h6-elements
.. _HTML5 Writer: html.html#html5-polyglot
-.. _HTML5: http://www.w3.org/TR/html5/
-
+.. _HTML5: https://www.w3.org/TR/2014/REC-html5-20141028/
Writer Specific Defaults
""""""""""""""""""""""""
`initial_header_level`_
- 2 (for "<h2>", cf. the `HTML5.3 Working Draft`__)
+ 2 (for "<h2>", cf. the "`The h1, h2, h3, h4, h5, and h6 elements`__"
+ in the HTML Standard)
`stylesheet_path <stylesheet_path [html writers]_>`__:
"minimal.css, plain.css"
+__ https://html.spec.whatwg.org/multipage/sections.html
+ #the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
+
embed_images
""""""""""""
-Embed images in the output HTML file. If 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`_.
+Deprecated. Obsoleted by image_loading_.
-Default: disabled (False).
-Options: ``--embed-images``, ``--link-images``.
-New in Docutils 0.17.
+image_loading
+"""""""""""""
+
+Suggest at which point images should be loaded.
+
+:embed: If the image can be read from the local file system, it is
+ base64_ encoded and included as a `data URI`_.
+ (In future, SVG images will be converted to inline SVG)
+
+:eager: load image immediately when opening the HTML document (default).
+
+:lazy: Specify the `lazy loading attribute`_ to defer fetching the image.
+
+Default: "eager". Option: ``--image-loading``.
+
+New in Docutils 0.18.
.. _base64: https://en.wikipedia.org/wiki/Base64
.. _data URI: https://en.wikipedia.org/wiki/Data_URI_scheme
+.. _lazy loading attribute: https://html.spec.whatwg.org/multipage/
+ urls-and-fetching.html#lazy-loading-attributes
section_self_link