The issue is that when parsing a Lsetext_heading (===), we were wrapping all the Rparagraph lines in a Heading, without taking into account that some of the lines might be a link reference definition
Test 216
[foo]: /url
===
[foo]
Current result:
<h1>[foo]: /url</h1>
<p>[foo]</p>
Expected result:
<p>===
<a href="/url">foo</a></p>
Same as 216 except that in that case there's nothing between the link reference definition and the Lsetext_heading. There's nothing then to make as Heading.
Test 215
Current result:
Expected result:
The issue is that when parsing a
Lsetext_heading
(===), we were wrapping all theRparagraph
lines in aHeading
, without taking into account that some of thelines
might be alink reference definition
Test 216
Current result:
Expected result:
Same as 216 except that in that case there's nothing between the
link reference definition
and theLsetext_heading
. There's nothing then to make asHeading
.