I see the problem, we will have it on every page: page and quit understandable you are missing the knowledge where to link to. from my point of view, give the ref the number 0 an link it to the top of the page. The reason for this ''curious idea'' is, if there are other refs on this page , this would look different and I'm shure that users will complain on the differnt look. But IM not shure ob my idea is that good? :(
Can you handle even two ref tags, on the same two pages
blah blah blah
blah blah blah<ref name="note1">beginning of note 1</ref> bla bla
<ref name="note2">beginning of note 2</ref> blah blah blah
blah blah blah
blah blah blah<ref follow="note1">end of note1</ref><ref follow="note2">end of note2</ref>
blah blah blah
A question according to the naming:. The names must be unique within the project or the names must be unique within the set of the transcluded pages.
may there be a page without between a contuation of a ref?
page1 <ref name=A> </ref>
page2 // no ref at all
page3 <ref follow="A"> </ref>
is this allowed
page1 <ref name=A> </ref>
page2 <ref> just another ref></ref>
page3 <ref follow="A"> </ref>
Just some curious ideas to your extension, hopefully i give you some test cases
greetings joergens.mi