Markdown writer:  Print markdown citation codes if citations enabled.

Slight issue:  the references are printed anyway.  To disable
this we need to merge issue771.