Fix ascii shrug guy

Changelog-Fixed: Fix ascii shrug guy
Closes: #238
This commit is contained in:
Lionello Lunesu
2023-01-03 23:05:41 -08:00
committed by William Casarin
parent 39fa973a80
commit e9380c3821
3 changed files with 14 additions and 3 deletions

View File

@@ -62,4 +62,14 @@ class MarkdownTests: XCTestCase {
XCTAssertEqual(md, expected)
}
func test_parse_shrug() throws {
let md = Markdown.parse(content: "¯\\_(ツ)_/¯")
XCTAssertEqual(NSMutableAttributedString(md).string, "¯\\_(ツ)_/¯")
}
func test_parse_backslash() throws {
let md = Markdown.parse(content: "\\a")
XCTAssertEqual(NSMutableAttributedString(md).string, "\\a")
}
}