I noticed an inconsistency between specifying a (pseudo-)protocol and linking by node title in how shortcut links are treated when an explicit title is provided:

BTW: I am aware of this remark, and so this supposed inconsistency may be considered as a feature discouraging linking by title, but I tend to interpret it in the former sense.



1 That is, at the time of this writing: <em>blazar</em> (that is <a href="?node=blazar">&lt;em>blazar&lt;/em></a> in the HTML source).

Replies are listed 'Best First'.
Re: Re shortcut link by title (bug)
by tye (Sage) on Nov 29, 2005 at 20:39 UTC

    Just a quick note that this isn't intentional. It got broke a while ago. I thought I had fixed it, but I guess not. The problem I noticed before was that htmlScreen() wasn't being passed any informat about what HTML tags to allow. That will eventually mean that those tags allowed in the chatterbox should be allowed. But that change didn't get deployed yet. I don't have time to look into whether that is still the problem at the moment.

    - tye        

      Hmm, I have a weird feeling it could also be my fault somewhere (ParseLinksInContent related), so I'll have a look too.

      ---
      $world=~s/war/peace/g

Re: Re shortcut link by title
by Roy Johnson (Monsignor) on Nov 29, 2005 at 16:23 UTC
    If you put the formatting outside the brackets (<em>[blazar]</em>), you get the desired effect: blazar, so I don't think it does much to discourage linking by name. Although it does discourage putting tags inside the link. :-)

    Note that you could also link by name with the href tag ([href://?node=blazar|<em>blazar</em>]): blazar.


    Caution: Contents may have been coded under pressure.

      I was about to point out alternatives myself, then avoided doing so for I wanted it to stay as simple as possible. The point not being the availability of workarounds, but the fact that appearently there's indeed an inconsistency.

      Also it's a pity that it discourages putting tags inside the links, as I may want to remark I'm blazar. ;-)