From: Peter H. <pjr...@gm...> - 2010-01-13 22:10:35
|
Sorry, failure to use "reply to all".... ---------- Forwarded message ---------- From: Peter Harley <pjr...@gm...> Date: 2010/1/13 Subject: Re: [Python-markdown-discuss] WikiLinks extension To: Waylan Limberg <wa...@gm...> 2010/1/13 Waylan Limberg <wa...@gm...>: > On Tue, Jan 12, 2010 at 7:57 PM, Yuri Takhteyev <qar...@gm...> wrote: > That being the case, [text](/link) seems better to me than > [[link|text]]. Interestingly, both use the exact same number of > characters - so wikilinks are not even a shortcut here. The one > exception would be if you were using the extensions option to > automatically append a path to the wikilink. > >> I think if one wants to build a wiki using Markdown, [[link|title]] is >> really the way to go and Peter's patch does add value to Wikilinks. >> > > Maybe the problem is my aversion to wikilinks in general (yes, I know > I wrote the original extension - every time we get a feature request > for it I wish I hadn't). When we already have an easy way to define > links (using Markdown), the only value, IMO, of wikilinks is to > eliminate the need to separately define a label when the label is the > same as the link text. Isn't that the whole point of wikilinks to > begin with? Adding the option to define labels on wikilinks is just a > replication of an existing feature we already have. It might be > different if we didn't have that other option. > > Regardless, if you think its a good idea and want to commit Peter's > patch, I can live with it. But he asked if we were interested. > Personally, I'm not. As you say, it was only a suggestion and I'm not really bothered either way. The real reason I was fiddling about in the first place is that I'm using the wikilinks extension with django to get urls for blog posts from their slugs, so I don't have to hard code links into my posts. The piping syntax was just me getting sidetracked! Anyway, its not really hard to do if anyone else wanted it anyway. It's only a few lines. I've stuck it on dpaste if you want to have a look. http://dpaste.com/hold/144513/ Peter |