Fix problem (kdweeks) where internal page links can overlay footnote hea...

...ders

Scanning was for #(.*?):(.*?)# which was swallowing too much text when a
link occurred on a line with a footnote header / back-reference.

Changed the scan to #([^'>]*?):(.*?)# so it won't apply to other # on the line