Text in hyperlinks should not be in unlinked mentions

Steps to reproduce

  1. Create a note named “COM”
  2. Create a note named “X”
  3. Hyperlink some text in note “X”
  4. Open unlinked mentions
  5. See unlinked mention highlighting text inside the hyperlink (this is the first bug)
  6. Attempt to create an internal link by clicking on the link button in the unlinked mention
  7. Unlinked mention does not go away and now hyperlink is not functional (this is the second bug)

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Text inside a hyperlink does not show up in unlinked mentions

Actual result

Text inside a hyperlink shows up in unlinked mentions
Attempting to create a link destroys the hyperlink and does not remove the unlinked mention

Environment

SYSTEM INFO:
Obsidian version: v1.5.3
Installer version: v1.4.13
Operating system: Darwin Kernel Version 17.7.0: Fri Oct 30 13:34:27 PDT 2020; root:xnu-4570.71.82.8~1/RELEASE_X86_64 17.7.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none