On Tue, 11 Mar 2003 17:48:35 -0600, Lee Daniel Crocker lee@piclab.com wrote:
Any article which refers to other sections of itself would be so improved under the proposal to support only [[#bar]] and interpret == bar == as <h2><a name="bar">bar</h2> instead of <h2>bar</h2>.
There was less objection (and frankly, very little reason to object) to the original design of anchor links which simply made [[foo#bar]] behave exactly as expected. There was more objection to the syntax I chose for target anchors ([[##bar]]), and the idea of being able to use target anchors in the first place.
Some of those objections might be addressed by agreeing to not allow /arbitrary/ anchors, but make all H2s implicit anchors. So that, for example,
== This is a subhead ==
is rendered as
<a name="thisisasubhead"><h2>This is a subhead</h2></a>
An inline element (<a>) may not contain a block element (<h2>)