summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatherine Peeters <katherine.peeters@leagueh.xyz>2021-01-23 13:01:39 -0500
committerKatherine Peeters <katherine.peeters@leagueh.xyz>2021-01-23 13:01:39 -0500
commitfa5b3c29d9244b42deba2221309d43c322b0a068 (patch)
treeca732a50e4a20892da92cb3612985ce70e5ac106 /Makefile
parent075f3580f8f3393f28928c8d610df36dcc6f7ade (diff)
downloadloh-website-fa5b3c29d9244b42deba2221309d43c322b0a068.tar.gz
Fix code sections
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 99ffabb..6d73d7b 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ all: $(HTML) $(RSS_XML)
%.html: %.md header.html footer.html lsand.html
cp header.html $@
- markdown $< | sed -e 's/\.md/\.html/g ; /^<h2>.*/i </div><div class="content">' >> $@
+ markdown -f fencedcode $< | sed -e 's/\.md/\.html/g ; /^<h2>.*/i </div><div class="content">' >> $@
echo "</div>" >> $@
cat lsand.html >> $@
lsand -H | tail -n +2 >> $@
@@ -23,7 +23,7 @@ all: $(HTML) $(RSS_XML)
echo "<title>`sed -n '/^#.*/p' $$i | cut -c 3-`</title>" >> $@; \
echo "<pubDate>`basename $$i | head -c8 | xargs date '+%a, %d %b %Y' -d`</pubDate>" >> $@; \
echo "<link>https://leagueh.xyz/$$i</link>" | sed 's/site\///g ; s/.md/.html/g' >> $@; \
- echo "<description>`markdown -f nosmarty $$i | sed '/^#.*/d ; s/</\&lt;/g ; s/>/\&gt;/g '`</description>" >> $@; \
+ echo "<description>`markdown -f fencedcode,nosmarty $$i | sed '/^#.*/d ; s/</\&lt;/g ; s/>/\&gt;/g '`</description>" >> $@; \
cat rss_item_footer.xml >> $@; \
done
cat rss_footer.xml >> $@