aboutsummaryrefslogtreecommitdiff
path: root/gemini.filter.dpi
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-05-19 20:28:48 -0400
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-05-19 20:28:48 -0400
commit479e756ab1b4d27b6a2515d0ae7f60883ddf138d (patch)
treeb55b98e703a825c168ded429a9c7d104a2d03589 /gemini.filter.dpi
parent58ae2f9f0140e5899b884649b5599091d6c49c36 (diff)
Drop link prefix
Diffstat (limited to 'gemini.filter.dpi')
-rwxr-xr-xgemini.filter.dpi3
1 files changed, 1 insertions, 2 deletions
diff --git a/gemini.filter.dpi b/gemini.filter.dpi
index 4196a81..d3bb95f 100755
--- a/gemini.filter.dpi
+++ b/gemini.filter.dpi
@@ -72,13 +72,12 @@ render_gemini() {
}
/^=>/ {
match($0, /^=>\s*/)
- prefix = substr($0, 0, RLENGTH)
href = substr($0, RLENGTH+1)
if (match(href, /^\S+/)) {
text = substr(href, RLENGTH+1)
href = substr(href, 0, RLENGTH)
}
- printf "<div>%s<a href=\"%s\">%s</a>%s</div>\n", prefix, href, href, text
+ printf "<div><a href=\"%s\">%s</a>%s</div>\n", href, href, text
next
}
/^$/ {