Change method types in MarkdownFormatter class to protected