diff options
author | François-Xavier Carton <fx.carton91@gmail.com> | 2020-11-24 01:42:06 +0100 |
---|---|---|
committer | François-Xavier Carton <fx.carton91@gmail.com> | 2020-11-24 01:42:06 +0100 |
commit | 11878bab8a7d7381d9b7b90aa6b6b89a57492597 (patch) | |
tree | f3eface9b4ff0a077d236d9841ebec3d47fe947b /blogit | |
parent | fc1425c7016903b620220a21d761d9198bc874d8 (diff) |
fix & < > escaping
Diffstat (limited to 'blogit')
-rwxr-xr-x | blogit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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/&/\&/g' \ -e '/^```$$/{s,.*,,;x;p;/^<\/code>/d;s,.*,<pre><code>,;bT}' \ -e 'x;/<\/code>/{x;s,\$$,\$,g;$$G;p;d};x' \ -e 's,\\\$$,\$,g' \ |