Move reference link logic to MarkdownRenderer

Signed-off-by: Geoff Pleiss <gpleiss@pivotal.io>