@Test
public void markDownToHtmlEscapesBackslash() {

    String[][] tests = {
            {"A\\_B\\_C", "A_B_C"},
            {"_A\\_B\\_C_", "<em>A_B_C</em>"},
            {"A_B\\_C", "A_B_C"},
            {"A\\_B_C", "A_B_C"},
            {"A_B_C", "A<em>B</em>C"},
            {"\\__AB\\__", "_<em>AB_</em>"},
            {"\\\\_AB\\_\\\\_", "\\<em>AB_\\</em>"},
            {"A\\*B\\*C", "A*B*C"},
            {"*A\\*B\\*C*", "<em>A*B*C</em>"},
            {"A*B\\*C", "A*B*C"},
            {"A*B*C", "A<em>B</em>C"},
            {"\\**AB\\**", "*<em>AB*</em>"},
            {"\\\\*AB\\*\\\\*", "\\<em>AB*\\</em>"},
            {"\\a\\ b\\*c\\d\\_e", "\\a\\ b*c\\d_e"},
            {"\\#1", "#1"},
            {"\\#\\# 2", "## 2"},
            {"works \\#when not required too", "works #when not required too"},
            {"\\", "\\"},
            {"\\\\", "\\"},
            {"\\\\\\", "\\\\"}};
    for (String[] testCase : tests) {
        assertEquals(testCase[1], TextUtils.markdownToHtml(testCase[0]));
    }
}