summaryrefslogtreecommitdiff
path: root/blog
diff options
context:
space:
mode:
Diffstat (limited to 'blog')
-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' \