about summary refs log tree commit diff stats
path: root/adapter/format
diff options
context:
space:
mode:
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>@'