add support for footnotes
This commit is contained in:
parent
6cf11513d6
commit
48fd08dad7
5
scripts/make-footnote
Executable file
5
scripts/make-footnote
Executable 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
|
3
scripts/put-footnotes
Executable file
3
scripts/put-footnotes
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
cat /tmp/footnotes
|
||||
echo > /tmp/footnotes
|
Loading…
Reference in New Issue
Block a user