summaryrefslogtreecommitdiff
path: root/doit.sh
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2021-04-30 07:17:59 +0100
committerPaul Buetow <git@mx.buetow.org>2021-05-21 05:11:03 +0100
commit762dc3a1a1c7ef049aec528a5e8b8251ac9bc7b5 (patch)
treef4cc69d308c486d9fc713e4971078c034a345fbc /doit.sh
parent72e414b8da38e0284a9556b72a991f7b4621375d (diff)
improve link style
Diffstat (limited to 'doit.sh')
-rwxr-xr-xdoit.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/doit.sh b/doit.sh
index 693dd39..311b503 100755
--- a/doit.sh
+++ b/doit.sh
@@ -133,7 +133,7 @@ html::link () {
# If no description use link itself
test -z "$descr" && descr="$link"
- echo "<a href=\"$link\">$descr</a><br />"
+ echo "<a class=\"textlink\" href=\"$link\">$descr</a><br />"
}
html::gemini2html () {
@@ -256,15 +256,15 @@ html::test () {
line="=> http://example.org"
assert::equals "$(html::link "$line")" \
- "<a href=\"http://example.org\">http://example.org</a><br />"
+ "<a class=\"textlink\" href=\"http://example.org\">http://example.org</a><br />"
line="=> index.gmi"
assert::equals "$(html::link "$line")" \
- "<a href=\"index.html\">index.html</a><br />"
+ "<a class=\"textlink\" href=\"index.html\">index.html</a><br />"
line="=> http://example.org Description of the link"
assert::equals "$(html::link "$line")" \
- "<a href=\"http://example.org\">Description of the link</a><br />"
+ "<a class=\"textlink\" href=\"http://example.org\">Description of the link</a><br />"
line="=> http://example.org/image.png"
assert::equals "$(html::link "$line")" \