moved Markdown renderer to its own class