From 11878bab8a7d7381d9b7b90aa6b6b89a57492597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Carton?= Date: Tue, 24 Nov 2020 01:42:06 +0100 Subject: fix & < > escaping --- blogit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blogit') diff --git a/blogit b/blogit index be99cff..c301c82 100755 --- a/blogit +++ b/blogit @@ -140,9 +140,9 @@ blog/%.html: articles/% $(addprefix templates/,$(addsuffix .html,header article_ envsubst < templates/article_header.html >> $@; \ sed -e 1d \ -e '/^;/d' \ + -e 's/&/\&/g' \ -e 's//\>/g' \ - -e 's/&/\&/g' \ -e '/^```$$/{s,.*,,;x;p;/^<\/code>/d;s,.*,
,;bT}' \
 		-e 'x;/<\/code>/{x;s,\$$,\$,g;$$G;p;d};x' \
 		-e 's,\\\$$,\$,g' \
-- 
cgit v1.2.3