FrontPage
»
StructuredTextNG
»
NGRuleProposals
»
DefaultUrlInterpretation
URLs?, when placed on their own in a structured text document, should become URL's with themselves as the link text. I.e.
becomes
<a href="http://foo.com">http://foo.com</a>
- gvanrossum (Mar 29, 2001 6:07 pm; Comment #1)
- Of course. This appears already implemented in ST classic, except that it gets confused by some markup following an URL (as in the example given here).
Can someone explain why the ';
of the second
<' in the example is rendered, while the other ';'s aren't rendered? - simon (Jul 11, 2001 6:40 pm; Comment #4)
- Yes. It's one of those weird interactions of rules you mentioned
on another page. Here, I believe
- ST classic ignores the bare url
- zwiki recognizes and links the url up to and including the <
- the ; is left over
To get the desired result we could do something like add a space -
<a href="http://foo.com">http://foo.com </a>
but this is probably a case for ST's :: operator, which (together with a recent version of zwiki) quotes everything:
<a href="http://foo.com">http://foo.com</a> One gets used to diagnosing these rule quirks and working around them. I'm not sure how prevent them completely without losing the convenience.