[pmwiki-users] %id=some-label% markup

John Rankin john.rankin at affinity.co.nz
Mon Jun 26 18:22:23 CDT 2006


On Monday, 26 June 2006 3:19 PM, John Rankin <john.rankin at affinity.co.nz> wrote:
>Could somebody explain a wikistyles feature please.
>
>It appears that %id=some-label% gets turned into id="some_label" 
>on output. Is there a reason for this? AFAIK hyphens are allowed 
>in id attribute values.
>
>The wikistyles.php code does this deliberately:
>
>.... if ($k=='id') $id = preg_replace('/\W/','_',$v);
>-- 
>JR
>--
>John Rankin

And I think there is a bug in the figure caption markup...

%id=sample.figure%Attach:some.image.gif | With a caption

The dot in the id (which gets turned into a '_') causes the
caption match to fail. A dot is omitted from the list of
style characters caption markup matches on.

-- 
JR
--
John Rankin







More information about the pmwiki-users mailing list