add support for outputting links at bottom of doc