allow multiple forms of latex math in test_markdown

different versions of pandoc use different escapes