add support for footnotes

This commit is contained in:
gnat
2024-09-14 03:49:33 -07:00
parent 6cf11513d6
commit 48fd08dad7
3 changed files with 13 additions and 0 deletions

5
scripts/make-footnote Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
id="$(wc -l /tmp/footnote_count | cut -d' ' -f1 | tr -d '\n')"
echo -n "<sup>[<a id=\"${id}_backref\" href=\"#${id}_ref\">${id}</a>]</sup>"
echo "<footnote style=\"margin: 0\" id=\"${id}_ref\">${1}<sup>[<a href=\"#${id}_backref\">${id}</a>]</sup></footnote>" >> /tmp/footnotes
echo ' ' >> /tmp/footnote_count