> 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>
That way, one can /only/ link internally to sections of an article
that are already clearly marked as sections. Likewise, you could
name a section "Endnotes" and use it for that purpose, and it would
be clearly marked as such. There would be the slight annoyance that
links would only point to the endnotes section as a whole, not to
each individual note, though auto-numbering of links and lists
might compensate for that a bit:
Darwin [[#endnotes]] believed that...
...
== Endnotes ==
# ''Origin of Species'', Charles Darwin, 1875, pp 185..190.
would render as:
Darwin <a href="#endnotes">1</a> believed that...
...
<a name="endnotes"><h2>Endnotes</h2><a>
<ol>
<li><em>Origin of Species</e>, ...
and so on.
--
Lee Daniel Crocker <lee(a)piclab.com> <http://www.piclab.com/lee/>
"All inventions or works of authorship original to me, herein and past,
are placed irrevocably in the public domain, and may be used or modified
for any purpose, without permission, attribution, or notification."--LDC