fix #7873 - links to footnotes removed on paste