2024-09-14 03:49:33 -07:00
|
|
|
#!/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>"
|
2024-09-20 05:23:06 -07:00
|
|
|
echo "<br><footnote style=\"margin: 0\" id=\"${id}_ref\">${1}<sup>[<a href=\"#${id}_backref\">${id}</a>]</sup></footnote>" >> /tmp/footnotes
|
2024-09-14 03:49:33 -07:00
|
|
|
echo ' ' >> /tmp/footnote_count
|