Links

8TML > Reference > Inline markup

[text](url) is a link.

Read the [news](news.8tml) or go [home](/).
Visit [the <yellow>T8wn</> site](http://t8wn.com/).

Preview: Commodore 64, 40 columns

                                            
Read the news or go home. Visit the T8wn
site.

Rules

  • The link text may contain inline tags and escapes.
  • The client collects everything from [ to ]. If the next character after ] is (, the address runs to ) and the text becomes a link. Otherwise the collected text is printed as written, brackets included: [x] stays [x].
  • Link text is at most 80 characters, an address at most 255. If the limit is reached before ] or ), the collected text is printed as plain text.
  • An empty link text, [](url), shows the address itself.
  • The address is taken exactly as written between ( and ), with spaces at its ends trimmed. Escapes, entities and markup don’t work inside it: write ) as %29 and a space as %20.
  • The link text ends at the first ], even an escaped \]. Write ] in link text as &#93;.
  • Links are styled by the stylesheet keys link and, while selected, link-sel.
[](http://t8wn.com/) shows its address.
A checkbox [x] is just text.

Preview: Commodore 64, 40 columns

                                            
http://t8wn.com/ shows its address. A
checkbox [x] is just text.

Brackets in the link text are fine; in the address, the closing bracket and the spaces are encoded:

[Top 10 (C64)](top%2010%20(c64%29.8tml) is one link.

Preview: Commodore 64, 40 columns

                                            
Top 10 (C64) is one link.

Addresses

Addresses are resolved against the page, as described under URLs: news.8tml, /, ../games/ and ?page=2 all work.

Links with a scheme other than http or https are shown, but can’t be followed. Reference links ([text][1]) don’t exist in 8TML.