An HTML::Pipeline filter for WikiMedia-style Cite references.
Latest commit ae61c4d Mar 3, 2013 @lee-dohm lee-dohm Fix broken link.

HTML::Pipeline Cite Gem Build Status

An HTML::Pipeline filter for WikiMedia-style Cite references.


Add this line to your application's Gemfile:

gem 'html-pipeline-cite'

And then execute:

$ bundle

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:

  <li id="wiki-cite_note-1"><b><a href="#wiki-cite_ref-1">^</a></b> This is a footnote.</li>


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.