File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 20
20
setextHeaderReg = regexp .MustCompile (`^[=\-]{2,}\s*$` )
21
21
footnotesReg = regexp .MustCompile (`\[\^.+?\](\: .*?$)?` )
22
22
footnotes2Reg = regexp .MustCompile (`\s{0,2}\[.*?\]: .*?$` )
23
- imagesReg = regexp .MustCompile (`\!\[.*?\][\[\(].*?[\]\)]` )
23
+ imagesReg = regexp .MustCompile (`\!\[.*?\]\s? [\[\(].*?[\]\)]` )
24
24
linksReg = regexp .MustCompile (`\[(.*?)\][\[\(].*?[\]\)]` )
25
25
blockquoteReg = regexp .MustCompile (`>\s*` )
26
26
refLinkReg = regexp .MustCompile (`^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$` )
Original file line number Diff line number Diff line change @@ -91,4 +91,10 @@ You can even share code stuff.`
91
91
if res := Strip (in ); res != out {
92
92
t .Errorf ("Original:\n \n %s\n \n Got:\n \n %s" , in , res )
93
93
}
94
+
95
+ in = "![Some image] (https://write.as/favicon.ico)"
96
+ out = ""
97
+ if res := Strip (in ); res != out {
98
+ t .Errorf ("Original:\n \n %s\n \n Got:\n \n %s" , in , res )
99
+ }
94
100
}
You can’t perform that action at this time.
0 commit comments