From d2377ae0160f0768b7b4480c926a2b3dc8b9f870 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 30 May 2020 15:59:52 -0500 Subject: Archive --- typeset_gemini.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ typeset_gemini() { local pre=false + local ln=0 while read -r line; do case "$line" in @@ -7,7 +8,10 @@ typeset_gemini() { flip pre continue ;; - =\>*) gemini_link "$line" $pre ;; + =\>*) + : $((ln += 1)) + gemini_link "$line" $pre + ;; \#*) gemini_header "$line" $pre ;; \**) gemini_list "$line" $pre ;; *) gemini_text "$line" $pre ;; -- cgit 1.4.1-21-gabe81