[pmwiki-devel] Anchors in includes
nzskiwi at gmail.com
Sun Apr 8 06:14:54 CDT 2012
Thanks for the very prompt reply.
I believe that this is a bug then, include does not use the same definition
of an anchor token as does the code that parses links and anchors.
PmWiki correctly creates anchors, and correctly links to them. (ie
[[#sec1.2]] and [[#sec1.2 | 1.2]])
(Honouring the syntax as defined in
http://www.w3.org/TR/html4/types.html#type-name - "ID and NAME tokens must
begin with a letter ([A-Za-z]) and may be followed by any number of
letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"),
and periods (".").").
I have created hundreds of these anchors, and links to them.
This is the first time I tried to include using them however.
I'll create a PITS entry
On 8 April 2012 12:50, Petko Yotov <5ko at 5ko.fr> wrote:
> On Sunday 08 April 2012 12:12:35 Simon wrote:
> > http://www.pmwiki.org/wiki/Test/IncludeAndAnchor
> > I am having difficulty with including content from another page where the
> > anchor is of the format [[#sec1.2]]
> Currently, the included sections should start with a letter, followed by
> letters, digits, simple dash - or underscore _ characters.
> I suppose you could select one of [[#sec12]], [[#sec1-2]] or [[#sec1_2]].
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-devel