mirror of
https://github.com/status-im/markdown.git
synced 2025-02-23 16:48:14 +00:00
Get tests to pass
This commit is contained in:
parent
1622f8f312
commit
45f5800b75
@ -240,6 +240,8 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int {
|
||||
i++
|
||||
}
|
||||
|
||||
brace := 0
|
||||
|
||||
// look for the matching closing bracket
|
||||
for level := 1; level > 0 && i < len(data); i++ {
|
||||
switch {
|
||||
|
@ -544,7 +544,7 @@ func TestInlineLink(t *testing.T) {
|
||||
|
||||
// Issue 116 in blackfriday
|
||||
".jpg)",
|
||||
"<p><img src=\"http://www.broadgate.co.uk/Content/Upload/DetailImages/Cyclus700(1).jpg\" alt=\"\" />\n</p>\n",
|
||||
"<p><img src=\"http://www.broadgate.co.uk/Content/Upload/DetailImages/Cyclus700(1).jpg\" alt=\"\" /></p>\n",
|
||||
|
||||
// no closing ), autolinking detects the url next
|
||||
"[disambiguation](http://en.wikipedia.org/wiki/Disambiguation_(disambiguation) is the",
|
||||
|
Loading…
x
Reference in New Issue
Block a user