чување a16c8d750af0e2f104fc85f73d2848b274b126b5
родитељ d29a55b0a22ca78c431bb2f5b550c222104fdaa7
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Sat, 30 Jan 2021 22:52:17 +0100
Updated manpage
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 3, додавања: 17(+), брисања: 7(-)
diff --git a/index.html b/index.html
@@ -136,7 +136,7 @@ this program. If not, see <<a href="https://www.gnu.org/licenses">https://www
<div id="git-log">
Previous commit:
-index.slw be389e9 2021-01-28 18:31:28 +0100 (Страхиња Радић) (HEAD -> master, origin/master, origin/HEAD)
+index.slw d29a55b 2021-01-30 21:41:33 +0100 (Страхиња Радић) (HEAD -> master, origin/master, origin/HEAD)
</div><!--git-log-->
diff --git a/slweb.1.in b/slweb.1.in
@@ -231,9 +231,11 @@ images can be added by using:
Which will produce:
.
.CDS 8
-<a href="/path/to/image.png" title="Some title"
- class="image" target="_blank"><img src="/path/to/image.png"
- alt="Some title" /></a>
+<figure>
+<a href="/path/to/image.png" title="Some title" class="image"
+ target="_blank"><img src="/path/to/image.png" alt="Some title"
+ /></a><figcaption>Some title</figcaption>
+</figure>
.CDE
.
.IP
@@ -242,8 +244,11 @@ used, using the image id instead of the direct
.SM URL.
.
.IP
-If the additional link is not desirable, it can be turned off by setting
+If the additional link or \fC<figure>\fP/\fC<figcaption>\fP tags are not
+desirable, they can be turned off by setting
.B add-image-links
+and
+.B add-figcaption
to \[lq]0\[rq].
.
.IP \[bu]
@@ -608,6 +613,12 @@ directive. (See
.SS Special YAML variables
.
.IP \[bu] 4
+.BR add-figcaption .
+If set to \[lq]0\[rq], \fC<figure>\fP and \fC<figcaption>\fP tags around images
+will not be added (otherwise they will by default, see
+.BR Images ).
+.
+.IP \[bu]
.BR add-footnote-div .
If set to \[lq]1\[rq], list of footnotes preceded by a horizontal rule will be
surrounded with a div having the id \[lq]\fCfootnotes\fP\[rq] (see
diff --git a/slweb.c b/slweb.c
@@ -1815,8 +1815,7 @@ slweb_parse(uint8_t* buffer, FILE* output, BOOL body_only,
{
skip_eol = TRUE;
- if (!(state & ST_YAML)
- && lineno > 1
+ if (!(state & ST_YAML) && lineno > 1
&& !read_yaml_macros_and_links)
process_horizontal_rule(output);
else