diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-10-06 22:09:12 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-10-08 21:45:22 +0200 |
| commit | 82b9f6c3ff97fccce19e0fa5fe34250bf3790f3f (patch) | |
| tree | 6472393034f8202de77f9010b62a5d2cc9231818 /utils/macros.m4 | |
| parent | 53a9bc43b4f4a92d0502e10161d5a6a5ac03f8ac (diff) | |
| download | sebastiano.tronto.net-82b9f6c3ff97fccce19e0fa5fe34250bf3790f3f.tar.gz sebastiano.tronto.net-82b9f6c3ff97fccce19e0fa5fe34250bf3790f3f.zip | |
Fixed navigation table using m4
Diffstat (limited to 'utils/macros.m4')
| -rw-r--r-- | utils/macros.m4 | 17 |
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 @@ | |||
| 1 | m4_divert(-1) | ||
| 2 | m4_changequote(`{{{{{', `}}}}}') | ||
| 3 | |||
| 4 | This file contains some m4 macros that can be used to preprocess md files. | ||
| 5 | |||
| 6 | m4_divert(1) | ||
| 7 | |||
| 8 | m4_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 | |||
| 15 | m4_define({{{{{m4_caption}}}}}, {{{{{<p align="center"><em>$1</em></p>}}}}}) | ||
| 16 | |||
| 17 | m4_divert(0)m4_dnl | ||
