summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois-Xavier Carton <fx.carton91@gmail.com>2020-10-09 22:59:09 +0200
committerFrançois-Xavier Carton <fx.carton91@gmail.com>2020-10-09 22:59:09 +0200
commitbd4a8693f084ff02a573639fd2cef8643d94cda0 (patch)
treec762e5c6e54163af55dcecfea9156911149a8217
parent8a5f9ac927d798f8b3c8a9c3e3f3c8a65150fe78 (diff)
Give ` a higher precedence
-rwxr-xr-xblog6
1 files changed, 3 insertions, 3 deletions
diff --git a/blog b/blog
index 22d10e3..a65f3dd 100755
--- a/blog
+++ b/blog
@@ -141,11 +141,11 @@ blog/%.html: articles/% $(addprefix templates/,$(addsuffix .html,header article_
-e '/^###/{s,^###,<h3>,;s,$$,</h3>,;H;s,.*,,;x;p;d}' \
-e '/^##/{s,^##,<h2>,;s,$$,</h2>,;H;s,.*,,;x;p;d}' \
-e '/^#/{s,^#,<h1>,;s,$$,</h1>,;H;s,.*,,;x;p;d}' \
- -e 's,\*\*\(\([^*][^*]*\*\?\)*\)\*\*,<b>\1</b>,g' \
- -e 's,\*\([^*][^*]*\)\*,<i>\1</i>,g' \
+ -e 's,`\([^`]*\)`,<q>\1</q>,g' \
+ -e 's,\*\*\(\([^*<>][^*<>]*\*\?\)*\)\*\*,<b>\1</b>,g' \
+ -e 's,\*\([^*<>][^*<>]*\)\*,<i>\1</i>,g' \
-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 '/^[1-9][0-9]*\. /{s,^[0-9]*\. ,<li>,;s,$$,</li>,;x;/^<\/ol>/{x;bL};p;s,.*,<ol>,;bT}' \
-e '/^$$/{x;/^$$/d;p;d}' \