summaryrefslogtreecommitdiff
path: root/lib/html.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2021-06-19 11:09:59 +0100
committerPaul Buetow <git@mx.buetow.org>2021-06-19 11:09:59 +0100
commit6b24f401cfce32214caab6d79549b4ee50f566f5 (patch)
tree1583155248624ff069cebd2d1e50b235a5f01c98 /lib/html.source.sh
parentdfca7068e834ceff944d79ce4e4c7b3c14b94f91 (diff)
new default css style - dont display img descriptions above the image anymore
Diffstat (limited to 'lib/html.source.sh')
-rw-r--r--lib/html.source.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/html.source.sh b/lib/html.source.sh
index 6049c2f..a7e7717 100644
--- a/lib/html.source.sh
+++ b/lib/html.source.sh
@@ -37,7 +37,6 @@ html::make_img () {
if [ -z "$descr" ]; then
echo -n "<a href=\"$link\"><img src=\"$link\" /></a>"
else
- echo -n "<i>$descr:</i>"
echo -n "<a href=\"$link\"><img alt=\"$descr\" title=\"$descr\" src=\"$link\" /></a>"
fi
@@ -158,5 +157,5 @@ html::test () {
line='=> http://example.org/image.png Image description'
assert::equals "$(generate::make_link html "$line")" \
- '<i>Image description:</i><a href="http://example.org/image.png"><img alt="Image description" title="Image description" src="http://example.org/image.png" /></a><br />'
+ '<a href="http://example.org/image.png"><img alt="Image description" title="Image description" src="http://example.org/image.png" /></a><br />'
}