allow multiple forms of latex math in test_markdown

different versions of pandoc use different escapes
Merge pull request #6863 from minrk/markdown-tex-math

allow multiple forms of latex math in test_markdown