Minor regexp oversight for setext headings

John Gruber gruber at fedora.net
Sat Oct 7 15:10:29 EDT 2006


Allan Odgaard <29mtuz102 at sneakemail.com> wrote on 10/7/06 at
6:27 AM:


> Noticed the patterns for setext style headings are:

> ^(.+)[ \t]*\n=+[ \t]*\n+

> Should be:

> ^(.+?)[ \t]*\n=+[ \t]*\n+


Why? I can't see where this would make a difference.

-J.G.


More information about the Markdown-Discuss mailing list