[pmwiki-users] Automatically add anchors to heading tags? pmwiki-users Digest, Vol 25, Issue 50
John Rankin
john.rankin at affinity.co.nz
Thu Jul 26 21:22:20 CDT 2007
On Thursday, 26 July 2007 10:02 PM, H. Fox <haganfox at users.sourceforge.net> wrote:
<snip>
>Having a heading's link change so it later points to a different
>heading is even worse than having an anchor vanish. (Principle of
>Least Surprise and all...)
>
>FWIW, the crc32 solution[1] is a simple number-link possibility that
>only seems to fall down on duplicate headings.
Nice.
If the heading text changes, that would break the link too. This
could be covered by a comment statement, e.g.
!!New and better heading
>>comment<<
!!Old and not very good heading
>><<
I'm guessing that will work.
The site's markup usage guide would need to draw authors' attention to this.
>
>Hagan
>
>[1] http://www.pmwiki.org/wiki/PITS/00955#checksum
>
--
JR
--
John Rankin
\_
\)
\,\__/7
/ /
( c'
\ /
/, /_/
| & * Wellington
) /
/ /,
/ (
| /
\__/
V
More information about the pmwiki-users
mailing list