From 965425b3a95885bf07d47afffe0ca553de3432f6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 1 May 2021 19:14:32 +0100 Subject: fix < and > in pre --- buetow.org.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buetow.org.sh') diff --git a/buetow.org.sh b/buetow.org.sh index b0cfe58f..ad6d5a6e 100755 --- a/buetow.org.sh +++ b/buetow.org.sh @@ -193,7 +193,7 @@ html::gemini2html () { if [[ "$line" == '```'* ]]; then local -i plain_end=$(( line_nr - 1 )) # Use sed, as escaping \ in bash strings is hell! - sed -n "${plain_start},${plain_end} { s|<|<|g; s|>|>|g; p; }" $gmi_file + sed -n "${plain_start},${plain_end} { s|<|\\<|g; s|>|\\>|g; p; }" $gmi_file echo "" is_plain=0 fi -- cgit v1.2.3