aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneandrienko <evg.andrienko@gmail.com>2025-09-02 21:44:28 +0300
committereugeneandrienko <evg.andrienko@gmail.com>2025-09-02 21:44:28 +0300
commitedf5dc98439e348930cd8aa3583df2763a5452d7 (patch)
treeecc037bac9ace873e1e212afd678f1cc94d06eeb
parentc663ef15ea7ecc63865e36c693e5057ecb4937ae (diff)
Add -iu option for ansi2html to avoid badly looking Gemini pagesHEADmain
Without -i the headers are not parsed by Dillo and displayed to the user as the usual contents of the page. Without -u the URLs in the page are un-clickable and have an ugly "&gt;" prefixes.
-rwxr-xr-xgemini.filter.dpi2
1 files changed, 1 insertions, 1 deletions
diff --git a/gemini.filter.dpi b/gemini.filter.dpi
index 9448250..f362af3 100755
--- a/gemini.filter.dpi
+++ b/gemini.filter.dpi
@@ -29,7 +29,7 @@ render_gemini() {
cat ~/.dillo/dpi/gemini/style.css || true
printf "</style></head>\n"
if command -v ansi2html >/dev/null
- then ansi2html
+ then ansi2html -iu
else cat
fi | awk '
function escape_html(str) {