Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot escape unordered list or headlines #124

Open
frndev opened this issue Oct 5, 2021 · 0 comments
Open

Cannot escape unordered list or headlines #124

frndev opened this issue Oct 5, 2021 · 0 comments

Comments

@frndev
Copy link

frndev commented Oct 5, 2021

Hello, I need to escape unordered list and headlines but I got wrong behaviour as you can see in this test I've created

    func testThatUnorderedListsAreEscapedCorrectly() {
        let dashBullets = StringTest(input: "\\- Hello", expectedOutput: "- Hello")
        var md = SwiftyMarkdown(string: dashBullets.input)
        md.bullet = "-"
        XCTAssertEqual(md.attributedString().string, dashBullets.expectedOutput)
    }

Output
XCTAssertEqual failed: ("\- Hello") is not equal to ("- Hello")

Any idea how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant