Found a corner case. Is there a way to get stuff like this added to the test suite? The canonical Markdown.pl handles it properly, but markdown.py doesn't. I've sumitted a bug report, but haven't checked any other implemenations. kailoa --Being test file: simple formatted links this is a [**test**](http://example.com/) this is a second **[test](http://example.com)** reference **[test][]** reference [**test**][] [test]: http://example.com/ [**test**]: http://example.com/ --END test file
Kailoa Kadano <5sxnauv02@sneakemail.com> wrote on 8/30/06 at 6:37 AM:> Is there a way to get stuff like this added to the test suite?Sure, mail it to the list like you did, and I'll consider it. :^)> --Being test file: simple formatted links > this is a [**test**](http://example.com/) > this is a second **[test](http://example.com)** > reference **[test][]** > reference [**test**][] > > [test]: http://example.com/ > [**test**]: http://example.com/ > --END test fileHmm, this is interesting. Most of these seem straightforward as to what the results should be, but this one seems weird to me: reference [**test**][] [test]: http://foo.com/ [**test**]: http://bar.com/ My gut feeling is that the current result from Markdown.pl is correct: <p>reference <a href="http://bar.com/"><strong>test</strong></a></p> but it does seem like a weird thing to write. -J.G.
On Aug 31, 2006, at 8:59 AM, John Gruber gruber-at-fedora.net | markdown mailing list| wrote:> Kailoa Kadano <5sxnauv02@sneakemail.com> wrote on 8/30/06 at 6:37 AM: >> --Being test file: simple formatted links >> this is a [**test**](http://example.com/) >> this is a second **[test](http://example.com)** >> reference **[test][]** >> reference [**test**][] >> >> [test]: http://example.com/ >> [**test**]: http://example.com/ >> --END test file > > Hmm, this is interesting. > > Most of these seem straightforward as to what the results should > be, but this one seems weird to me: > > reference [**test**][] > > [test]: http://foo.com/ > [**test**]: http://bar.com/ > > My gut feeling is that the current result from Markdown.pl is correct: > > <p>reference <a href="http://bar.com/"><strong>test</strong></ > a></p> > > but it does seem like a weird thing to write. > > -J.G.It is weird, but I agree that it is correct. Judging from your reaction, the result seems to be serendipitous with respect to Markdown.pl. Unfortunately, not all implementations seem to match... Thanks, Kailoa
Kailoa Kadano <5sxnauv02@sneakemail.com> wrote on 8/31/06 at 11:03 AM:> It is weird, but I agree that it is correct. Judging from your > reaction, the result seems to be serendipitous with respect to > Markdown.pl. Unfortunately, not all implementations seem to match...What result does the Python version give? -J.G.
On Aug 31, 2006, at 11:22 AM, John Gruber gruber-at-fedora.net | markdown mailing list| wrote:> Kailoa Kadano <5sxnauv02@sneakemail.com> wrote on 8/31/06 at 11:03 AM: > >> It is weird, but I agree that it is correct. Judging from your >> reaction, the result seems to be serendipitous with respect to >> Markdown.pl. Unfortunately, not all implementations seem to match... > > What result does the Python version give? > > -J.G.(cleaned up spacing for legibility) markdown.py: <p> this is a <a href="http://example.com/">**test**</a> this is a second <em></em><a href="http://example.com">test</ a><strong> reference </strong><a href="http://example.com/">test</a><em></em> reference <a href="http://example.com/">**test**</a> </p> Markdown.pl: <p> this is a <a href="http://example.com/"><strong>test</strong></a> this is a second <strong><a href="http://example.com">test</a></ strong> reference <strong><a href="http://example.com/">test</a></strong> reference <a href="http://example.com/"><strong>test</strong></a> </p> markdown.py is clearly confused by the nested tags. Kailoa