vmg / sundown

Standards compliant, fast, secure markdown processing library in C
1.99k stars 385 forks source link

Header closing tag level wrong after specific autolink. #75

Closed spladug closed 12 years ago

spladug commented 12 years ago

The following input

http://aaaaaaaaaaaaaaaa.aaa/aaaaaaa#aaaaa

=

Generates the following output

<p><a href="http://aaaaaaaaaaaaaaaa.aaa/aaaaaaa#aaaaa">http:&#47;&#47;aaaaaaaaaaaaaaaa.aaa&#47;aaaaaaa#aaaaa</a></p>

<h1></h118>

when MKDEXT_AUTOLINK is enabled.

I haven't dug in much here yet, but it is important to note that the number and position of the 'a's in the input is significant, but not what letter they actually are. Some slight variations of input text resulted in </h120>.

spladug commented 12 years ago

Fixed by 86b851a55b12812df4d3b874b73097447799bdeb!