a memo

Learning About Text Formatting At WikiWikiWeb

Wiki Wiki Text Formatting Rules details the non-HTML formatting solution that WikiWiki uses. Not sure how its parsed, but regex wizards could do it in a heartbeat I'm sure.

Some interesting bits include:
  1. using * and 1. to delineat bulleted and numbered list items, respectively.
  2. http: is an automatic link, as it mailto:, etc.
  3. --- inserts a horizontal rule if found at the beginning of the line.
  4. Lines indented with spaces are automatically rendered monotype (they use
     tags)
Except for #4, these have all been implemented in bml for testing.

[*list:some set of [point:] or [*:] tags] creates a bulleted list, to wit:
  • point 1
  • point 2

[1.list:some set of [point:] or [*:] tags] creates a numbered list, to wit:
  1. point 1
  2. point 2

[----:] inserts a horizontal rule (
):


And [http://somesite.org/path/to/link.html;link text] acts exactly like [link:http://somesite.org/path/to/link.html;link text].
http://berylium.org/berylium/

So now you can just put brackets around a web url and have it appear as a link.

By Chris Snyder on January 27, 2003 at 3:55pm

jump to top