diff options
| author | Paul Buetow <paul@buetow.org> | 2024-04-30 13:06:57 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-04-30 13:06:57 +0300 |
| commit | e0f9a7722da62dec49353abff27cce9caf409113 (patch) | |
| tree | a5be1febd5a5fa055b3eafdc76fc2da327ca87da /lib/template.source.sh | |
| parent | f64c090bac0741963acef6193440d56fc6fbd48f (diff) | |
add id's to the headers in html, for ToC references later
Diffstat (limited to 'lib/template.source.sh')
| -rw-r--r-- | lib/template.source.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/template.source.sh b/lib/template.source.sh index 29d0bf4..519f2cf 100644 --- a/lib/template.source.sh +++ b/lib/template.source.sh @@ -93,12 +93,14 @@ template::inline::index () { # To generate a table of contents template::inline::toc () { echo '```' - echo 'Table of contents:' + echo 'Table of contents' + echo '=================' + echo '' < "$(basename "$CURRENT_TPL")" $SED -E -n ' /^```/,/^```/! { /^#+ / { s/#/ /g - s/^ // + s/^ // p } } |
