diff --git a/se/se_epub.py b/se/se_epub.py
index 4390a3cf..14e4c0f0 100644
--- a/se/se_epub.py
+++ b/se/se_epub.py
@@ -962,6 +962,15 @@ def generate_loi(self) -> str:
if not has_block:
entry = deepcopy(figcaption[0])
+ if isinstance(entry, se.easy_xml.EasyXmlElement):
+ # Remove endnote references.
+ for noteref in entry.xpath("a[contains(@epub:type, 'noteref')]"):
+ noteref.remove()
+
+ # For other links, keep only the contents.
+ for a in entry.xpath("a"):
+ a.unwrap()
+
a = se.easy_xml.EasyXmlElement("")
a.set_attr("href", f"{file_path.name}#{figure_id}")
diff --git a/tests/draft_commands/build-loi/test-1/golden/src/epub/text/chapter-1.xhtml b/tests/draft_commands/build-loi/test-1/golden/src/epub/text/chapter-1.xhtml
index c8161528..31239fd7 100644
--- a/tests/draft_commands/build-loi/test-1/golden/src/epub/text/chapter-1.xhtml
+++ b/tests/draft_commands/build-loi/test-1/golden/src/epub/text/chapter-1.xhtml
@@ -51,6 +51,16 @@
Figure 9
+
+
+
+