Delirium wrote:
* The
"Media", "Image" and other namespaces are handled in
post-processing. The parser sees them as text within the link target.
perhaps a first-pass postprocessor could stick them into the tree?
This is what I meant by post-processing. The post-processing step is an
operation on the parse tree. Its output is the minorly transformed parse
tree. After post-processing, the finished parse tree is handed to the
output generator ("compiler", if you will).
it'd avoid an "if this is really an image,
render it this way" check on
every link node in the AST.
This sort of check is not only negligibly unnoticeably fast, but it's
also unavoidable: Whether the parser does it during parsing, or the
post-processor during post-processing, or the output generator during
output generation, makes no difference.
Timwi