summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois-Xavier Carton <fx.carton91@gmail.com>2020-11-24 02:01:50 +0100
committerFrançois-Xavier Carton <fx.carton91@gmail.com>2020-11-24 02:01:50 +0100
commit733c3118866e18ed1c92f5dabc938434fcfa6647 (patch)
treef1a674c286fca43324d2690ff14480ba2ec56d45
parent11878bab8a7d7381d9b7b90aa6b6b89a57492597 (diff)
Change back quotes behaviour from <q> to <code>
-rwxr-xr-xblogit2
1 files changed, 1 insertions, 1 deletions
diff --git a/blogit b/blogit
index c301c82..a0d0004 100755
--- a/blogit
+++ b/blogit
@@ -150,7 +150,7 @@ 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,`\([^`]*\)`,<q>\1</q>,g' \
+ -e 's,`\([^`]*\)`,<code>\1</code>,g' \
-e 's,\*\*\(\([^*<>][^*<>]*\*\?\)*\)\*\*,<b>\1</b>,g' \
-e 's,\*\([^*<>][^*<>]*\)\*,<i>\1</i>,g' \
-e 's,!\[\([^]]*\)\](\([^)]*\)),<img src="\2" alt="\1"/>,g' \