[pmwiki-devel] Anchors

John Rankin john.rankin at affinity.co.nz
Fri Jan 6 21:56:06 CST 2012

It's because the "hyphens" aren't in fact hyphens, but special characters.
Perhaps the anchor was copied and pasted from another place that
"smartens" what an author writes, such as Microsoft Word?

To get the anchor to work as posted, I had to delete the "hyphen" and
replace it with a -

> I'm looking at stdmarkup.php
> ## [[#anchor]]
> Markup('[[#','<[[','/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/e',
>   "Keep(TrackAnchors('$1') ? '' : \"<a name='$1' id='$1'></a>\", 'L')");
> and http://www.w3.org/TR/html4/types.html#type-name
> I'm trying to get an anchor such as
> <http://ttc.org.nz/pmwiki/pmwiki.php/TararuaFootprints/MangatainokaValley>
> [[#Mangatainoka–Herepai–Ruapae]]
> to work, (seems reasonable to me).
John Rankin

More information about the pmwiki-devel mailing list