diff options
| author | Paul Buetow <git@mx.buetow.org> | 2021-04-30 07:17:59 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-05-21 05:11:03 +0100 |
| commit | 762dc3a1a1c7ef049aec528a5e8b8251ac9bc7b5 (patch) | |
| tree | f4cc69d308c486d9fc713e4971078c034a345fbc /doit.sh | |
| parent | 72e414b8da38e0284a9556b72a991f7b4621375d (diff) | |
improve link style
Diffstat (limited to 'doit.sh')
| -rwxr-xr-x | doit.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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")" \ |
