Regression tests for link backtracking optimizations: . [[some unrelated text [link] [link]: foo .
[[some unrelated text link
. . [[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)
.