summaryrefslogtreecommitdiff
path: root/blogit
diff options
context:
space:
mode:
authorFrançois-Xavier Carton <fx.carton91@gmail.com>2020-11-24 01:42:06 +0100
committerFrançois-Xavier Carton <fx.carton91@gmail.com>2020-11-24 01:42:06 +0100
commit11878bab8a7d7381d9b7b90aa6b6b89a57492597 (patch)
treef3eface9b4ff0a077d236d9841ebec3d47fe947b /blogit
parentfc1425c7016903b620220a21d761d9198bc874d8 (diff)
fix & < > escaping
Diffstat (limited to 'blogit')
-rwxr-xr-xblogit2
1 files changed, 1 insertions, 1 deletions
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/&/\&amp;/g' \
-e 's/</\&lt;/g' \
-e 's/>/\&gt;/g' \
- -e 's/&/\&amp;/g' \
-e '/^```$$/{s,.*,,;x;p;/^<\/code>/d;s,.*,<pre><code>,;bT}' \
-e 'x;/<\/code>/{x;s,\$$,\&#36;,g;$$G;p;d};x' \
-e 's,\\\$$,\&#36;,g' \