implement rewrite rules for resolving citations, footnotes and link
references