file protocol is not support
snaill opened this issue · comments
snaill commented
let down = Down(markdownString: "![map](file:///Users/snaill/_WriteDownOutput/71.png)")
let html = try down.toHTML()
XCTAssertEqual(html, "<img src=\"\" alt=\"map\" />")
let down = Down(markdownString: "![map](/Users/snaill/_WriteDownOutput/71.png)")
let html = try down.toHTML()
XCTAssertEqual(html, "<img src=\"/Users/snaill/_WriteDownOutput/71.png\" alt=\"map\" />")