From: Waylan L. <wa...@gm...> - 2008-07-21 17:00:29
|
Sean, First of all, thanks for your feedback. I appreciate hearing from my users. Second, as the wikilink extension is now part of the Markdown package (and will likely be included in the next release), I'm copying the python-markdown list with this response. Personally, I don't care for CamelCase links in my documents for the same reasons you mention, among others (and therefore don't use the extension). However, the WikiLink extension is specifically to add CamelCase links, so I won't be removing that feature. I wrote the WikiLink extension as a learning exercise and have maintained it since because some seem to find is useful. At the very least, others have found it to be simple starting point for creating their own Inline extensions. Therefore, I'm inclined to not add any additional features and over complicate it for the beginner. However, it would be very easy to either build your own extension or perhaps even use my extension with a different regex which provides the features you desire. I encourage you to give it a shot. If you need any help, feel free to ask. I imagine a "bracketed links" extension (perhaps with a better name) would be a valuable asset to the Python-Markdown community. Btw, some of your objections have already been addressed in the existing extension. For instance, an underscore in a Wiki_Link will be converted to a space ("Wiki Link" in this case). Additionally, a \CamelCase word can be escaped with a backslash. I understand these solutions may not be ideal for everyone, but that is why we try to keep Markdown's extension api easy to use. Anyone can add new or override existing behavior. On Mon, Jul 21, 2008 at 11:42 AM, Sean Hammond <S.P...@sm...> wrote: > Like this extension, but I wonder can it be extended to allow wikilinking to > pages whose name is only one word? e.g. if a page is simply called "About" that > cannot be spelled in CamelCase. Perhaps to make a wikilink to this page the > user could write [[About]]. Double brackets is generally a better syntax > because it allows one-word page names and page names with spaces in them, and > CamelCase will sometimes match things that are not page names that then have to > be escaped somehow. An option could then turn off the linkifying of CamelCase > words and use only [[Double Brackets]]. I think it could be done by modifying > the regular expression WIKILINK_RE. What do you think? > > Thanks > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > -- ---- Waylan Limberg wa...@gm... |