about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--typeset_gemini.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/typeset_gemini.sh b/typeset_gemini.sh index e8aed41..2f9abbc 100644 --- a/typeset_gemini.sh +++ b/typeset_gemini.sh
@@ -1,5 +1,6 @@
1typeset_gemini() { 1typeset_gemini() {
2 local pre=false 2 local pre=false
3 local ln=0
3 4
4 while read -r line; do 5 while read -r line; do
5 case "$line" in 6 case "$line" in
@@ -7,7 +8,10 @@ typeset_gemini() {
7 flip pre 8 flip pre
8 continue 9 continue
9 ;; 10 ;;
10 =\>*) gemini_link "$line" $pre ;; 11 =\>*)
12 : $((ln += 1))
13 gemini_link "$line" $pre
14 ;;
11 \#*) gemini_header "$line" $pre ;; 15 \#*) gemini_header "$line" $pre ;;
12 \**) gemini_list "$line" $pre ;; 16 \**) gemini_list "$line" $pre ;;
13 *) gemini_text "$line" $pre ;; 17 *) gemini_text "$line" $pre ;;