From 0df39e5be1128b1ef11107254d42041c0f5dd0b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 1 Nov 2017 17:48:37 +0100 Subject: [PATCH] m.htmlsanity: figure legend shouldn't be wrapped in a
. The
element is not allowed inside
in the HTML5 standard. --- doc/css/components.rst | 6 +++--- doc/plugins/htmlsanity.rst | 3 ++- pelican-plugins/m/htmlsanity.py | 8 ++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/doc/css/components.rst b/doc/css/components.rst index a948367a..1ddcd5db 100644 --- a/doc/css/components.rst +++ b/doc/css/components.rst @@ -521,7 +521,7 @@ Use the HTML5 :html:`
` tag together with :css:`.m-figure` to style it. As with plain image, it's by default centered, slightly rounded and has a border around the caption and description. The caption is expected to be in the :html:`
` element. The description is optional, but should be -wrapped in some tag as well (for example a :html:`
`). The +wrapped in some tag as well (for example a :html:``). The :css:`.m-fullwidth` class works here too and you can also wrap the :html:`` element in an :html:`` tag to make it clickable. @@ -536,7 +536,7 @@ the border is distracting, apply the :css:`.m-flat` class to hide it.
Ship
A Ship
-
+ Photo © The Author
.. raw:: html @@ -544,7 +544,7 @@ the border is distracting, apply the :css:`.m-flat` class to hide it.
Ship
A Ship
-
Photo © The Author
+ Photo © The Author
`Image grid`_ diff --git a/doc/plugins/htmlsanity.rst b/doc/plugins/htmlsanity.rst index a2fb2977..c6f6bad8 100644 --- a/doc/plugins/htmlsanity.rst +++ b/doc/plugins/htmlsanity.rst @@ -66,7 +66,8 @@ horrible, right?) with a custom HTML5 writer derived from specified otherwise - Figures are using HTML5 :html:`
` tag instead of :html:`