diff options
author | François-Xavier Carton <fx.carton91@gmail.com> | 2020-10-09 22:59:09 +0200 |
---|---|---|
committer | François-Xavier Carton <fx.carton91@gmail.com> | 2020-10-09 22:59:09 +0200 |
commit | bd4a8693f084ff02a573639fd2cef8643d94cda0 (patch) | |
tree | c762e5c6e54163af55dcecfea9156911149a8217 /blog | |
parent | 8a5f9ac927d798f8b3c8a9c3e3f3c8a65150fe78 (diff) |
Give ` a higher precedence
Diffstat (limited to 'blog')
-rwxr-xr-x | blog | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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}' \ |