diff options
| author | Robert Günzler <r@gnzler.io> | 2026-09-23 15:10:30 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-09-23 23:23:41 +0200 |
| commit | 37c36cdf3c3e0165555d9b9db6296808e267dccd (patch) | |
| tree | 843e5733a3c8fe0959b669a8800ab7446b99afa5 /preproc.lua | |
| parent | f1d58129692080759b748c076b08063d58f8db75 (diff) | |
| download | site-37c36cdf3c3e0165555d9b9db6296808e267dccd.tar.gz | |
preproc.lua: wrap "jump to top" link in list element
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
| -rw-r--r-- | preproc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/preproc.lua b/preproc.lua index e9aa366..76f0678 100644 --- a/preproc.lua +++ b/preproc.lua @@ -27,7 +27,9 @@ return { table.insert(front, pandoc.RawBlock("html5", '<nav class="table-of-contents capital">')) table.insert(front, pandoc.RawBlock("html5", "<ol>")) -- insert jump to top + table.insert(front, pandoc.RawBlock("html5", "<li>")) table.insert(front, pandoc.Link("back to top", "#top")) + table.insert(front, pandoc.RawBlock("html5", "</li>")) -- create custom toc toc:walk({ Link = function(e) |