diff options
-rwxr-xr-x | blogit | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -142,8 +142,10 @@ blog/%.html: articles/% $(addprefix templates/,$(addsuffix .html,header article_ -e '/^;/d' \ -e 's/</\</g' \ -e 's/>/\>/g' \ + -e 's/&/\&/g' \ -e '/^```$$/{s,.*,,;x;p;/^<\/code>/d;s,.*,<pre><code>,;bT}' \ - -e 'x;/<\/code>/{x;$$G;p;d};x' \ + -e 'x;/<\/code>/{x;s,\$$,\$,g;$$G;p;d};x' \ + -e 's,\\\$$,\$,g' \ -e '/^####/{s,^####,<h4>,;s,$$,</h4>,;H;s,.*,,;x;p;d}' \ -e '/^###/{s,^###,<h3>,;s,$$,</h3>,;H;s,.*,,;x;p;d}' \ -e '/^##/{s,^##,<h2>,;s,$$,</h2>,;H;s,.*,,;x;p;d}' \ |