Changed source line in Gemfile to make Bundler happy.
Gemfile.lock updated.
Enabling links to reference, and starting adding them to HTML.
Changed my mind about class of links to references.
Fixed embarrassing typo.
Cunning script to add id attributes to elements in reference list.
Renamed script.
Script to add links to references inside the text.
Result of said script.
Script to add section links, and result thereof.
JavaScript to make stuff work.