Hi kswtch,
You can change the parsing order by overriding the inline_elements()
method
of your custom dialect (untested):
@property
def inline_elements(self):
return [(self.no_wiki,self.bodiedmacro,self.macro), self.img ] + \
self.custom_elements + [self.link,
self.br, self.raw_link,
self.simple_element]
For further help, look at the "Basic Extending Example":
http://creoleparser.googlecode.com/svn/docs/modules/dialects.html#creoleparser.dialects.creole11_base
Alternatively, you could work on the LinkElement class of the library
itself,
as I'd be open to a patch regarding this. There is an open issue that
covers part of your case:
http://code.google.com/p/creoleparser/issues/detail?id=36
Cheers,
Stephen Day