@ -114,8 +114,10 @@ module.exports = function links(state, silent) {
if (pos >= 0) {
label = state.src.slice(start, pos++);
} else {
pos = start - 1;
pos = labelEnd + 1;
}
// covers label === '' and label === undefined
@ -58,19 +58,3 @@ error:
<p><a href="/uri">foo <em>bar [baz][ref]</em></a></p>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src line: 5915
.
[foo] bar
[foo]: /url
<p><a href="/url">foo</a> bar</p>
error:
<p><a href="/url">foo</a>bar</p>
@ -5204,6 +5204,17 @@ src line: 5905
<p><a href="/url" title="title">Foo</a></p>
src line: 5926