[pmwiki-devel] Anchors

Simon nzskiwi at gmail.com
Fri Jan 6 22:22:41 CST 2012


You are right, thank you, and a happy kiwi summer to you

Simon


On 7 January 2012 16:56, John Rankin <john.rankin at affinity.co.nz> wrote:

> 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
>
>


-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20120107/77374884/attachment.html>


More information about the pmwiki-devel mailing list