summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnav.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/nav.sh b/nav.sh
index eeaeadd..50eaa82 100755
--- a/nav.sh
+++ b/nav.sh
@@ -46,6 +46,10 @@ done
sed '3s;.*;<a href="/" aria-label="root">·</a>;' -i'' $2
+# hide tree characters for screen readers
+
+sed 's;^\(.\+\)<a;<span aria-hidden="true">\1</span><a;1' -i'' $2
+
echo '</pre>' >> $2 # closing <pre> tag
cat $2