Test case for "TOC plugin":

The Big Step 1

The first heading text hoes hero

The Big Step 2

This is the second heading text

second header, first subheader

Some subheader text here

second header, second subheader

Another piece of subheadeg text here

The Big Step

Third heading text

The Big Step

Fourth heading text; anchor above needed uniquifying

The big Step

Per, "Anchor names must be unique within a document. Anchor names that differ only in case may not appear in the same document."

The Big Step #6

The number/hash sign is allowed in fragments; the fragment starts with the first hash. No spec as a reference for this, but the anchors work in Firefox 3 and IE 6.

Calculation #7: 7/5>3 or <2?

Hash marks in fragments work, as well as '/' and '?' signs. < and > are escaped.


I have no idea WTF that means, but per per, "Anchor names should be restricted to ASCII characters.", and MediaWiki does that too (see刚果民主共和国)

#8: start with a number (hash) [pound] {comment} sign

Lots of gibberish here: "!"#$%&'()*+,-./:;=>?@[\]^_`{|}~

Note how the straight quotes were replaced by smart quotes, which are invalid in id attributes for XHTML 1.0 (!)