Markdown writer: Print references if output is 'plain'.