Timwi wrote:
* The "Media", "Image" and other
namespaces are handled in
post-processing. The parser sees them as text within the link target.
From the point of view of semantics and abstract syntax, it would make
some sense for these to be represented in the AST. If it turns out to
be difficult to do in lex/yacc that's fine, but perhaps a first-pass
postprocessor could stick them into the tree? It'd be particularly
useful when retargeting the parser to non-HTML outputs. Depending on
implementation, it might even be as efficient or more efficient, since
it'd avoid an "if this is really an image, render it this way" check on
every link node in the AST.
-Mark