Regression tests for link backtracking optimizations: . [[some unrelated text [link] [link]: foo .

[[some unrelated text link

. This is not a valid emphasis, because \n considered a whitespace: . **test ** ** test** ** test ** .

**test **

** test**

** test **

. Link label has priority over emphasis (not covered by commonmark tests): . [**link]()** **[link**]() .

**link**

**link**

. Issue #55: . ![test] ![test](foo bar) .

![test]

![test](foo bar)

. Issue #35. `<` shoud work as punctuation . an **(:**
.

an (:

. Should unescape only needed things in link destinations/titles: . [test](<\f\o\o\>\\>) .

test

. . [test](foo "\\\"\b\a\r") .

test

. Not a closing tag . .

</ 123>

. Not a list item . 1.list .

1.list

. Normalize link destination, but not text inside it: . .

http://example.com/αβγδ

. Autolinks do not allow escaping: . .

http://example.com/\[\

. Multiline title in definitions: . [foo]: test ' 1 2 3 ' [foo] .

foo

. Coverage. Directive can terminate paragraph. . a a

* .

foo@bar.com

. Coverage. Unpaired nested backtick (silent mode) . *`foo* .

`foo

. Coverage. Entities. . *&* * * *&* .

&

&

. Coverage. Escape. . *\a* .

\a

. Coverage. parseLinkDestination . [foo](< bar>) [foo]([foo](< bar>)

[foo](<bar)

. Coverage. parseLinkTitle . [foo](bar "ba) [foo](bar "ba\ z") .

[foo](bar "ba)

foo

. Coverage. Image . ![test]( x ) .

test

. . ![test][foo] [bar]: 123 .

![test][foo]

. . ![test][[[ [bar]: 123 .

![test][[[

. . ![test]( .

![test](

. . ![test]( x =100x200) .

test

. . ![test]( x =x) .

test

. . ![test]( x =100x) .

test

. . ![test]( x =x200) .

test

. . ![test]( x "title" =100x200) .

test

. . ![test]( x =WxH ) .

![test]( x =WxH )

. . ![test]( x = 100x200 ) .

![test]( x = 100x200 )

. . ![test]( x =aaaxbbb ) .

![test]( x =aaaxbbb )

. . ![test](http://this.is.test.jpg =100x200) .

test

. . ![test](![test](<x =100x200)

. . ![test]( =100x200) .

test

. . ![test](test =100%x) .

test

. Coverage. Link . [test]( .

[test](

. Coverage. Reference . [ test\ ]: 123 foo bar .

foo bar

.