[Formatter] Fixed MarkdownFormatter.

Hey there :)

A little PR to fix the Markdown formatter :
When you have two resources other than "others", it will render only the last one because it enters the elseif statement more than once, which erase the previous content of the $markdown variable.

I fixed that and added a testcase of course.

Regards.