Presumably Lee Daniel Crocker wrote:
That's another thing to think about. BTW, I implemented page fragment links (e.g., [[Chemistry#history]], which links to [[##history]] on the Chemistry page), though I haven't made much noise about it because I'm still not sure they're needed--for one thing, they encourage long pages, and I don't like my syntax. But headings do seem like a natural match there.
This is great! I've wanted this a few times lately. I agree that the specifics of implementation are problematic. Perhaps you could render [[##history]] as <a name="history">history</a>, with the option for [[##history|herstory]] as <a name="history">herstory</a>? That would make usage a bit more natural, from my point of view.
Also, you could force the URL to have the first letter captitalised, for the same reason as in linking between articles. Then [[Chemistry#history]] could render as <a href="http://www.wikipedia.com/wiki/Chemistry#History">history</a>, while [[##History]] renders as <a name="History">History</a>. But the important thing is to have the feature at all.
-- Toby Bartels toby+wikipedia-l@math.ucr.edu