aaren/pandoc-reference-filter — pull request #2 by aaren (2014-11-16 14:19:06+00:00)
Title: separate reference consumption and replacement

previous behaviour was to replace referencable objects (figures,
sections, math) at the same time as appending their reference info to the
ReferenceManager internal state.

Now we 'consume' and replace reference objects in separate stages. This
allows us to pass over text and get all the reference info without
modifying it.