From: Waylan L. <wa...@gm...> - 2009-02-14 20:33:44
|
On Fri, Feb 13, 2009 at 8:47 PM, Ron Garret <ro...@fl...> wrote: > I realize I'm a little late to the party, but is there a reason you > didn't just construct an RE that matched CamelCase outside of links, > and then run that at the very end? Well, when the inline patterns are run, the document is an ElementTree Object. In other works, the html markup is not part of the text - so no that won't work. An to complicate matters, ElementTree Objects don't keep a reference to their parent - so we can't just check the parent. However, I suppose there isn't any reason why someone couldn't write a post-processor which did something like this. Although, it'll be fun getting it to ignore codeblocks and various other edge cases. That's the thing about CamelCase links. There's always going to be false positives. I've gotten the sense over the years that pretty much any serious system which has started out with them has either regretted it or abandoned them for this reason. But, for some situations, people like them, so if someone wants to write an extension, they are more than welcome. -- ---- \X/ /-\ `/ |_ /-\ |\| Waylan Limberg |