about summary refs log tree commit diff stats
path: root/adapter/format
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-17 18:19:57 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-17 18:19:57 +0100
commit9c11f691bf781f21dc7ec9628238d06eba6391dc (patch)
tree25af0da12c6a4ee5615f0c94fbe951abf8d1502f /adapter/format
parent5f31d08c61410c1bcad075f483d7cdeb78a1170d (diff)
downloadchawan-9c11f691bf781f21dc7ec9628238d06eba6391dc.tar.gz
Add history
It's still missing a "color visited links" feature, but it's better
than nothing.
Diffstat (limited to 'adapter/format')
-rw-r--r--adapter/format/uri2html3
1 files changed, 3 insertions, 0 deletions
diff --git a/adapter/format/uri2html b/adapter/format/uri2html
new file mode 100644
index 00000000..20ae5670
--- /dev/null
+++ b/adapter/format/uri2html
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo "<!DOCTYPE html>${1+"<h1>$1</h1><hr>"}<ol>"
+sed -e '/^#/d' -e 's@.*@<li><a href="&">&</a>@'