(issue 3811) add tests for markdown formatting