aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-10-06 22:09:12 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-10-08 21:45:22 +0200
commit82b9f6c3ff97fccce19e0fa5fe34250bf3790f3f (patch)
tree6472393034f8202de77f9010b62a5d2cc9231818 /utils
parent53a9bc43b4f4a92d0502e10161d5a6a5ac03f8ac (diff)
downloadsebastiano.tronto.net-82b9f6c3ff97fccce19e0fa5fe34250bf3790f3f.tar.gz
sebastiano.tronto.net-82b9f6c3ff97fccce19e0fa5fe34250bf3790f3f.zip
Fixed navigation table using m4
Diffstat (limited to 'utils')
-rw-r--r--utils/macros.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/macros.m4 b/utils/macros.m4
new file mode 100644
index 0000000..445846c
--- /dev/null
+++ b/utils/macros.m4
@@ -0,0 +1,17 @@
1m4_divert(-1)
2m4_changequote(`{{{{{', `}}}}}')
3
4This file contains some m4 macros that can be used to preprocess md files.
5
6m4_divert(1)
7
8m4_define({{{{{m4_navtable}}}}},
9{{{{{<table style="width: 100%; table-layout: fixed;"> <thead> <tr>
10 <th style="text-align: left"> <a href="$2">$1</a> </th>
11 <th style="text-align: center"> <a href="$4">$3</a> </th>
12 <th style="text-align: right"> <a href="$6">$5</a> </th>
13</tr> </thead> </table>}}}}})
14
15m4_define({{{{{m4_caption}}}}}, {{{{{<p align="center"><em>$1</em></p>}}}}})
16
17m4_divert(0)m4_dnl

Generated with cgit - Back to sebastiano.tronto.net