(issue #951) add tests for markdown in email