Hmm, maybe something like this: $[link "http://mysite.example" :label "Example" :html-attr "..." :latex-attr "..."]
Code that adds functionality or safety to this syntax (including all future code) will also apply to other features than links. For a new feature, replace the first element with id, fancy-date, or whatever idea you have. It might even be possible to open it up to the user in a safe and convenient way. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com