From b223ccaee986584b6b41df8050c035e7fad6642b Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sat, 18 Apr 2026 23:55:06 +0800 Subject: [PATCH] feat(footnotes): detect more formats of footnote (#3894) --- apps/readest-app/src/app/reader/components/FootnotePopup.tsx | 3 +++ packages/foliate-js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/readest-app/src/app/reader/components/FootnotePopup.tsx b/apps/readest-app/src/app/reader/components/FootnotePopup.tsx index 42b5c9d6..21d1ee44 100644 --- a/apps/readest-app/src/app/reader/components/FootnotePopup.tsx +++ b/apps/readest-app/src/app/reader/components/FootnotePopup.tsx @@ -245,6 +245,9 @@ const FootnotePopup: React.FC = ({ bookKey, bookDoc }) => { if (footnoteClasses.some((cls) => anchor.classList.contains(cls))) { detail['follow'] = true; } + if (/^.{0,2}\d+$/.test(anchor.textContent || '')) { + detail['check'] = true; + } historyRef.current = { items: [detail], index: 0 }; setCanGoBack(false); canGoBackRef.current = false; diff --git a/packages/foliate-js b/packages/foliate-js index 7657c78b..2bf0cecf 160000 --- a/packages/foliate-js +++ b/packages/foliate-js @@ -1 +1 @@ -Subproject commit 7657c78bd8d2e88de35b10374ad1ecd006f1baae +Subproject commit 2bf0cecfcd439204436a2b5b8c764f9fb70bd647