[pmwiki-users] MarkupExtension - FootNotes problem

Peter Brink peter.brink at brinkdata.se
Fri Aug 26 12:13:08 CDT 2005


Patrick R. Michaud skrev:

> John Rankin should be able to answer in more detail, but I'll
> provide my observations.  
> 
[ snip ]
> 
> The solution is to make sure that each footnote identifier is unique.
> This could be done by something like
> 
>    - Never resetting the footnote counter to zero
>    - Adding a "footnote group" counter into the anchor, as in
>      #fn_1_1, #fn_1_2, #fn_1_3, ...  and then after a [^#^] markup
>      has been encountered increasing the group number to produce
>      anchors like  #fn_2_1, #fn_2_2, #fn_2_3, etc.
> 
> I don't think the problem is tied to any particular version of PmWiki;
> I think that the footnote capabilities in extendmarkup.php aren't 
> (yet?) designed to support multiple instances of the [^#^] markup
> in a single page.

Thanks for the help Patrick!

I've commented out the resetting of the counter as quick n' dirty 
solution. I'll probably try and change the code so that I can have 
several sets of footnotes numbered from 1 and up, but I save that for 
later this weekend... :-)

/Peter Brink





More information about the pmwiki-users mailing list