diff options
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 } } |
