File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,19 @@ func TestRender_Images(t *testing.T) {
93
93
test (
94
94
"[](" + href + ")" ,
95
95
`<p><a href="` + href + `" rel="nofollow"><img src="` + result + `" alt="` + title + `"/></a></p>` )
96
+
97
+ url = "/../../.images/src/02/train.jpg"
98
+ test (
99
+ "" ,
100
+ `<p><a href="` + result + `" rel="nofollow"><img src="` + result + `" alt="` + title + `"/></a></p>` )
101
+
102
+ test (
103
+ "[[" + title + "|" + url + "]]" ,
104
+ `<p><a href="` + result + `" rel="nofollow"><img src="` + result + `" title="` + title + `" alt="` + title + `"/></a></p>` )
105
+ test (
106
+ "[](" + href + ")" ,
107
+ `<p><a href="` + href + `" rel="nofollow"><img src="` + result + `" alt="` + title + `"/></a></p>` )
108
+
96
109
}
97
110
98
111
func testAnswers (baseURLContent , baseURLImages string ) []string {
You can’t perform that action at this time.
0 commit comments