Gabe Anzelini

July 30, 2012 at 7:36pm
Home

Automatic Footnotes For Scripture References

I am really enjoying composing blog posts on my iPad using writing kit. However, one of the challenges I am facing is when I want to reference a Biblical passage as a footnote. I find it cumbersome to format the footnote and create the footnote with the text and a link to the passage. I have now created a hazel rule on my Mac to watch for updated md files and to run a ruby script1 on them. The script does the following:

  • find existing footnotes
  • find scripture references ([^book chapter:verse]) that aren’t already in footnotes
  • look up the text on bible.org
  • create a footnote
  • append a footnotes file named “orignal_file_name_footnotes.md”

What I can then do, when I am all done with the post, is copy the footnotes from the footnotes file to the bottom of the post, delete the footnotes file, and, bob’s your uncle, scripture footnotes.