diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-20 21:08:49 -0400 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-20 21:08:49 -0400 |
commit | 44d924601d24526ab42d4c80d96ed22548c1cd51 (patch) | |
tree | 99aa3a9272fcd40f1121560919cc7e65c8dee534 /gemini.filter.dpi | |
parent | cee7eea4d135fcf773a9f07cfdd7c82e7ab2fcd9 (diff) |
Render link without text
Diffstat (limited to 'gemini.filter.dpi')
-rwxr-xr-x | gemini.filter.dpi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gemini.filter.dpi b/gemini.filter.dpi index c64ca9e..d5c8367 100755 --- a/gemini.filter.dpi +++ b/gemini.filter.dpi @@ -87,6 +87,9 @@ render_gemini() { prefix = substr(text, 0, RLENGTH) text = substr(text, RLENGTH+1) sub(/:1965/, "", href) + if (!text) { + text = href + } html = escape_html(text) printf "<div>%s<a href=\"%s\">%s</a></div>\n", prefix, href, html next |