[pmwiki-users] Automatically add anchors to heading tags?

H. Fox haganfox at users.sourceforge.net
Tue Jul 24 11:11:11 CDT 2007


On 7/22/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Fri, Jul 20, 2007 at 09:11:00PM -0700, H. Fox wrote:
> > Now officially a requested feature.  Vote / comment here:
> >
> >    http://www.pmwiki.org/wiki/PITS/00955
>
> I left some questions on the PITS page, but essentially:
>
> * What if the heading contains other markups, such as links
>   or wikistyles? Do we have to be smart enough to strip those
>   somehow before producing the heading anchor?

Yes.

> * If a heading already has an anchor in it, should PmWiki
>   still generate yet another anchor for the heading?

I'd say yes to this one, too.

> * Do we convert all punctuation that appears in the heading,
>   or just parens?

Any character not allowed in an anchor tag, I suppose.  The example on
the PITS page is just something I discovered when I was looking at how
it was done elsewhere.

Stripping out disallowed characters may be adequate.

Hagan



More information about the pmwiki-users mailing list