Greedy regex bug
John Gruber
gruber at fedora.net
Fri May 28 21:20:21 EDT 2004
Sebastian Banker <sebbo at sebbo.org> wrote on 05/28/04 at 9:07pm:
> The resulting HTML, however, treated everything from "Gilgamesh" through
> "POD??" at the title for the first link, apparently preferring the last
> available quotemark to the first one.
I suspect you're using an old version of Markdown. This bug was
fixed in 1.0b4:
1.0b4: Thu 25 Mar 2004
* Fixed bug where a paragraph with multiple inline links or images
-- i.e. [links like this](url "title") -- parsed incorrectly. The
regex to match title strings was greedy, but shouldn't have been.
-J.G.
More information about the Markdown-discuss
mailing list