enable generic output format. closes #3

This is a format agnostic representation of the links and figures.
Allows us to use the filter with e.g. docx output.