> Are you thinking that there would be a mapping of link types to
> various functions (which return the ElementNode) or something within a
> single function that handles different types of links?
>
> The former seems in keeping with the usual patterns.
>
> So a "formatter" would result in a link macro of type X. Macro
> processing would say "oh yeah, that's X, funcX deals with that".

Can you clarify what sort of link types you'd expect to see?

Links in TW5 are parsed as a simple link target string. The link
target may be a URI or a tiddler reference, and in the latter case
we're talking about adding an optional space component to the link.
Currently, heuristics are applied at macro execution time to determine
if the link target is an external link or a tiddler link.

I don't think it makes sense to have separate callbacks for massaging
external links, tiddler links, intraspace vs. interspace links because
one of the things we want to be able to override is those heuristics
that are used to classify and render links.

Therefore, I see this mechanism more as a way for the link macro to
delegate some of its work to an external callback, and would be
inclined structure it in those terms, as a single callback.

Cheers

Jeremy

-- 
Jeremy Ruston
mailto:[email protected]
http://www.tiddlywiki.com

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to