|
From: Yuri T. <qar...@gm...> - 2008-07-17 23:08:52
|
> I have markdown installed with the easy_install command directly from the
> cheese shop, though I think I have a recent version (1.7). But while trying
> out your examples above, my installation fails:
>
> >>> import markdown
> >>> markdown.markdown(r'[foo](bar())')
> u'<p><a href="bar(">foo</a>)\n</p>'
> >>> markdown.markdown(r'[foo](bar(\))')
> u'<p>[foo](bar())\n</p>'
>
> Does babelmark have anathor version installed? They say that they also have
> 1.7
I think you have the right version of Python markdown but the wrong
(old) version of Perl.
[foo](bar()) => <p><a href="bar(">foo</a>)\n</p>
This is the "bug" that Waylan mentioned. That is, we differ from
other implementations here, in that <p><a href="bar()">foo</a></p>,
would be more desirable.
[foo](bar(\)) => <p>[foo](bar())\n</p>
Apart from the \n, this is what all implementations do now. _Old_
version (1.0.1) of Perl markdown actually generated the link. The new
one (1.0.2b8) does not. See:
http://babelmark.bobtfish.net/?markdown=[foo](bar(\))
PHP Markdown, which for me is a more important reference, produces this:
<p>[foo](bar())</p>
Not to suggest that there is any logic to any of those behaviors.
Markdown syntax clearly doesn't consider parentheses in inline URLs.
So, while it would be nice to be on the same page with other
implementations for the first example, I can't say this bothers me too
much.
- yuri
--
http://sputnik.freewisdom.org/
|