Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install html-pipeline-cite
This gem offers an HTML::Pipeline filter that collects references in the text and inserts a table of footnotes where instructed.
<ref>This is a footnote</ref>
<sup class="reference" id="wiki-cite_ref-1">[<a href="#wiki-cite_note-1">1</a>]</sup>
It will show up as a bracketed, superscripted and anchored number at that location in the text. Then when
<references/> is placed in the text, an ordered list of the references and their text will be placed at that
location. The example above would generate a list that looks like this:
<ol> <li id="wiki-cite_note-1"><b><a href="#wiki-cite_ref-1">^</a></b> This is a footnote.</li> </ol>
To see what has changed in recent versions of the
html-pipeline-cite gem, see the CHANGELOG.
Core Team Members
Copyright © 2013 Lee Dohm, Lifted Studios. See LICENSE for details.
Project is a member of the OSS Manifesto.