xdocs: Add a unit test for the MarkdownFormatter Change-Id: Ib41322474fb4df9fdfe1a3da98a58ee65dc7be23