Footnotes in Markdown
Using markdown is great. Creating and using footnotes in markdown is very manual. Painful even.
So I’ve created a Keyboard Maestro shortcut to make them easier.
What it does is run a shell script to get the current date and time and saves that to a variable.
Then we insert by typing the HTML code to do the superscript1 for the foot note.
We use the date-time variable to create a footnote id to go at the bottom of the document (ie
fn-yyyymmddhhmmss) and a slight variation for the backlink back up to where the footnote was inserted (i.e.
Then a line below insert an ordered list with a list item where the footnote text goes. Of course, we then move that to the bottom of the document.
If we have more than one, manually update the number used for the footnote. Because the list of footnotes at the end are in an ordered list, they will be numbered automatically.
If you’ve got a way to further automate this please let me know.
Text of footnote goes here. ↩︎