|
From: Ron G. <ron...@gm...> - 2009-03-23 20:21:53
|
On Mar 23, 2009, at 1:08 PM, Waylan Limberg wrote:
> Thanks for the feedback Ron. I've responded you your concerns below to
> keep things in context.
>
> On Mon, Mar 23, 2009 at 3:19 PM, Ron Garret <ron...@gm...>
> wrote:
>> My pleasure. Thanks for the code :-)
>>
>> Couple of comments. These are really design issues, not bugs, but
>> FWIW:
>>
>> 1. The wikilink behavior has changed in a non-backwards-compatible
>> way.
>> Before, [[WikiLink]] and [[wiki link]] were equivalent. Now they
>> are not.
>> Personally, I preferred the old way.
>
> What was the old way? I don't remember changing that. Could you
> provide an example of the current output and the expected output?
>
The old one converted spaces to CamelCase. The new one converts
spaces to underscores.
Old:
Python 2.6.1 (r261:67515, Dec 6 2008, 16:42:21)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import markdown
>>> markdown.version
'1.7'
>>> markdown.markdown('[[wiki link]]',['wikilink'])
u'<p><a href="/WikiLink/" class="wikilink">wiki link</a>\n</p>'
New:
>>> import markdown
>>> markdown.version
'2.0-rc1'
>>> markdown.markdown('[[wiki link]]',['wikilinks'])
u'<p><a class="wikilink" href="/wiki_link/">wiki link</a></p>'
>>>
rg
|