fixes for footnote urls and image urls