internal referencing pandoc filter