summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois-Xavier Carton <fx.carton91@gmail.com>2020-10-01 18:46:46 +0200
committerFrançois-Xavier Carton <fx.carton91@gmail.com>2020-10-01 18:46:46 +0200
commitdf49a5e71445bd0840ea055583dc05a990b86157 (patch)
treee966582ce042e85834514d2dbdf65eafff8daf00
parentd8a6ccbb229f1c018f9fb0d86be7064af9de3af8 (diff)
Add unnumbered lists
-rwxr-xr-xblog1
1 files changed, 1 insertions, 0 deletions
diff --git a/blog b/blog
index 14dcb1e..4ab284f 100755
--- a/blog
+++ b/blog
@@ -90,6 +90,7 @@ blog/%.html: articles/% $(addprefix templates/,$(addsuffix .html,header article_
-e 's,!\[\([^]]*\)\](\([^)]*\)),<img src="\2" alt="\1"/>,g' \
-e 's,\[\([^]]*\)\](\([^)]*\)),<a href="\2">\1</a>,g' \
-e 's,`\([^`]*\)`,<q>\1</q>,g' \
+ -e '/^- /{s,^- ,<li>,;s,$$,</li>,;x;/^<\/ul>/{x;bL};p;s,.*,<ul>,;bT}' \
-e '/^$$/{x;/^$$/d;p;d}' \
-e 'x;/^$$/{s,.*,<p>,;bT};x' \
-e ':L;$$G;p;d' \