6 lines
323 B
Bash
Executable File
6 lines
323 B
Bash
Executable File
#!/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 "<br><footnote style=\"margin: 0\" id=\"${id}_ref\">${1}<sup>[<a href=\"#${id}_backref\">${id}</a>]</sup></footnote>" >> /tmp/footnotes
|
|
echo ' ' >> /tmp/footnote_count
|